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.6, Stream Unique Identifiers.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NO_FIELDS | serialPersistentFields value indicating no serializable fields |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the class in the local VM that this version is mapped to.
| |||||||||||
Get the field of this class by name.
| |||||||||||
Return an array of the fields of this serializable class.
| |||||||||||
Returns the name of the class described by this descriptor.
| |||||||||||
Return the serialVersionUID for this class.
| |||||||||||
Find the descriptor for a class that can be serialized.
| |||||||||||
Returns the descriptor for any class, regardless of whether it
implements
Serializable . | |||||||||||
Return a string describing this ObjectStreamClass.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
serialPersistentFields value indicating no serializable fields
Return the class in the local VM that this version is mapped to. Null is returned if there is no corresponding local class.
Class
instance that this descriptor represents
Get the field of this class by name.
name | the name of the data field to look for |
---|
Return an array of the fields of this serializable class.
Returns the name of the class described by this descriptor.
This method returns the name of the class in the format that
is used by the getName()
method.
Return the serialVersionUID for this class. The serialVersionUID defines a set of classes all with the same name that have evolved from a common root class and agree to be serialized and deserialized using a common format. NonSerializable classes have a serialVersionUID of 0L.
Find the descriptor for a class that can be serialized. Creates an ObjectStreamClass instance if one does not exist yet for class. Null is returned if the specified class does not implement java.io.Serializable or java.io.Externalizable.
cl | class for which to get the descriptor |
---|
Returns the descriptor for any class, regardless of whether it
implements Serializable
.
cl | class for which to get the descriptor |
---|
Return a string describing this ObjectStreamClass.