| java.lang.Object | |
| ↳ | java.io.ObjectStreamClass |
Instances of ObjectStreamClass are used to describe classes of objects used by serialization. When objects are saved, information about all its superclasses is also saved by the use of descriptors, instances of ObjectStreamClass. These descriptors carry information about the class they represent, such as - The name of the class - SUID of the class - Field names and types
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ObjectStreamField[] | NO_FIELDS | A value that indicates the class has no Serializable fields | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the class (java.lang.Class) that the receiver represents
| |||||||||||
Returns a given field by name.
| |||||||||||
Returns the collection of field descriptors for the fields of the
corresponding class
| |||||||||||
Returns the name of the class represented by the receiver
| |||||||||||
Returns the Serial Version User ID of the class represented by the
receiver
| |||||||||||
Return the descriptor (ObjectStreamClass) corresponding to the class
cl. | |||||||||||
Returns a string containing a concise, human-readable description of the
receiver.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
A value that indicates the class has no Serializable fields
Return the class (java.lang.Class) that the receiver represents
null if there is no corresponding class for the
receiver Class The loaded class corresponding to
the receiver
Returns a given field by name.
| name | name of the desired field. |
|---|
Returns the collection of field descriptors for the fields of the corresponding class
Returns the name of the class represented by the receiver
Returns the Serial Version User ID of the class represented by the receiver
Return the descriptor (ObjectStreamClass) corresponding to the class
cl. If the class is not Serializable or Externalizable,
null is returned.
| cl | a java.langClass for which to obtain the corresponding descriptor |
|---|
null if instances of the class cl
are not Serializable or Externalizable
ObjectStreamClass The corresponding descriptor if
the class cl is Serializable or Externalizable
Returns a string containing a concise, human-readable description of the receiver.