java.lang.Object | |
↳ | java.io.ObjectStreamClass |
Represents a descriptor for identifying a class during serialization and deserialization. Information contained in the descriptor includes the name and SUID of the class as well as field names and types. Information inherited from the superclasses is also taken into account.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ObjectStreamField[] | NO_FIELDS | Constant indicating that the class has no Serializable fields. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the class (java.lang.Class) for this descriptor.
| |||||||||||
Gets a field descriptor of the class represented by this class
descriptor.
| |||||||||||
Returns a collection of field descriptors for the serialized fields of
the class represented by this class descriptor.
| |||||||||||
Returns the name of the class represented by this descriptor.
| |||||||||||
Returns the Serial Version User ID of the class represented by this
descriptor.
| |||||||||||
Returns the descriptor corresponding to the class
cl . | |||||||||||
Returns a string containing a concise, human-readable description of this
descriptor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Constant indicating that the class has no Serializable fields.
Returns the class (java.lang.Class) for this descriptor.
null
if there is no corresponding class.
Gets a field descriptor of the class represented by this class descriptor.
name | the name of the desired field. |
---|
name
or null
if there is
no such field.
Returns a collection of field descriptors for the serialized fields of the class represented by this class descriptor.
Returns the name of the class represented by this descriptor.
Returns the Serial Version User ID of the class represented by this descriptor.
Returns the descriptor corresponding to the class cl
. If the
class is not serializable or externalizable then null
is
returned.
cl | a java.langClass for which to obtain the corresponding descriptor |
---|
cl
is serializable or
externalizable; null
otherwise.
Returns a string containing a concise, human-readable description of this descriptor.