代码搜索:Serializable
找到约 10,000 项符合「Serializable」的源代码
代码结果 10,000
www.eeworm.com/read/106331/15639686
java student.java
import java.io.*;
//Student类实现Serializable接口
public class Student implements Serializable
{
int id;
String name;
int age;
String department;
public Student(int id,String name,int age,Stri
www.eeworm.com/read/103011/15749458
java booleancomparable.java
package piy;
import java.io.Serializable;
/**
* Represents any boolean statement that can be evaluated to return a boolean.
* @author David Vivash
* @version 1.0, 30/04/01
*/
public abstrac
www.eeworm.com/read/103011/15749490
java align.java
package piy;
import java.io.Serializable;
/**
* Wraps up the alignment property, and provides the constants needed by the AlignmentLayout.
* @author David Vivash
* @version 1.0, 25/02/01
*/
www.eeworm.com/read/391696/8390081
txt day14.txt
I/O流
对象流:ObjectInputStream和ObjectOutputStream
对象流是过滤流,需要节点流作参数来构造对象,用于直接把对象写入文件和从文件中读取对象。
只有实现了<mark>Serializable</mark>接口的类型的对象才可以被读写,<mark>Serializable</mark>接口是个标记接口,其中没有定义方法。
对象会序列化成一个二进制代码。
writeObject(o ...
www.eeworm.com/read/391476/8400970
java validatehome.java
import java.io.Serializable;
import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
public interface ValidateHome extends EJBHome
{
Validate create(St
www.eeworm.com/read/192054/8409510
java movestep.java
import java.awt.Point;
public class MoveStep implements java.io.Serializable
{
public Point pStart,pEnd;
public MoveStep(Point p1,Point p2)
{
pStart=p1;
pEnd=p2;
}
}
www.eeworm.com/read/291473/8416785
cs propertystatic.cs
using System;
//序列化
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary ;
namespace ExamSystem
{
///
/// PropertyStatic 的摘要说明。
///
www.eeworm.com/read/191767/8423607
java igraphic.java
/*
* A Graphic Interface ( A prototype interface )
*/
import java.io.*;
public interface IGraphic extends Cloneable, Serializable {
public String getName() ;
public void setName(Stri
www.eeworm.com/read/389449/8519580
java people.java
public class People implements java.io.Serializable
{
String name=null;
int time=0;
public People(String name,int t)
{
this.name=name;
time=t;
}
pu