|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.ObjectStreamClass
public class ObjectStreamClass
| Field Summary | |
|---|---|
static ObjectStreamField[] |
NO_FIELDS
|
| Method Summary | |
|---|---|
Class<?> |
forClass()
Returns the class that this ObjectStreamClass
represents. |
ObjectStreamField |
getField(String name)
|
ObjectStreamField[] |
getFields()
Returns the serializable (non-static and non-transient) Fields of the class represented by this ObjectStreamClass. |
String |
getName()
Returns the name of the class that this ObjectStreamClass represents. |
long |
getSerialVersionUID()
Returns the serial version stream-unique identifier for the class represented by this ObjectStreamClass. |
static ObjectStreamClass |
lookup(Class<?> cl)
Returns the ObjectStreamClass for cl. |
String |
toString()
Returns a textual representation of this ObjectStreamClass object including the name of the
class it represents as well as that class's serial version
stream-unique identifier. |
| 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)
ObjectStreamClass for cl.
If cl is null, or is not Serializable,
null is returned. ObjectStreamClass's are memorized;
later calls to this method with the same class will return the
same ObjectStreamClass object and no recalculation
will be done.
Warning: If this class contains an invalid serialPersistentField arrays
lookup will not throw anything. However getFields() will return
an empty array and ObjectOutputStream.writeObject(java.lang.Object) will throw an
InvalidClassException.
Serializablepublic String getName()
ObjectStreamClass represents.
public Class<?> forClass()
ObjectStreamClass
represents. Null could be returned if this
ObjectStreamClass was read from an
ObjectInputStream and the class it represents cannot
be found or loaded.
ObjectInputStreampublic long getSerialVersionUID()
ObjectStreamClass. This SUID is
either defined by the class as static final long
serialVersionUID or is calculated as specified in
Javasoft's "Object Serialization Specification" XXX: add reference
public ObjectStreamField[] getFields()
public ObjectStreamField getField(String name)
public String toString()
ObjectStreamClass object including the name of the
class it represents as well as that class's serial version
stream-unique identifier.
toString in class ObjectgetSerialVersionUID(),
getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||