|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.io.ObjectStreamClass
Serialization's descriptor for classes.
It contains the name and serialVersionUID of the class.
The ObjectStreamClass for a specific class loaded in this Java VM can
be found/created using the lookup method.
The algorithm to compute the SerialVersionUID is described in Object Serialization Specification, Section 4.4, Stream Unique Identifiers.
ObjectStreamField,
Object Serialization Specification, Section 4, Class Descriptors, Serialized Form| Field Summary | |
static ObjectStreamField[] |
NO_FIELDS
Set serialPersistentFields of a Serializable class to this value to denote that the class has no Serializable fields. |
| Method Summary | |
Class |
forClass()
Return the class in the local VM that this version is mapped to. |
ObjectStreamField |
getField(String name)
Get the field of this class by name. |
ObjectStreamField[] |
getFields()
Return an array of the fields of this serializable class. |
String |
getName()
The name of the class described by this descriptor. |
long |
getSerialVersionUID()
Return the serialVersionUID for this class. |
static ObjectStreamClass |
lookup(Class cl)
Find the descriptor for a class that can be serialized. |
String |
toString()
Return a string describing this ObjectStreamClass. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final ObjectStreamField[] NO_FIELDS
| Method Detail |
public static ObjectStreamClass lookup(Class cl)
public String getName()
public long getSerialVersionUID()
public Class forClass()
public ObjectStreamField[] getFields()
public ObjectStreamField getField(String name)
public String toString()
|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||