Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.io

Class ObjectStreamClass

java.lang.Object
|
+--java.io.ObjectStreamClass

All Implemented Interfaces:

Serializable


public class ObjectStreamClass

extends Object

implements Serializable

Field Summary

static java.io.ObjectStreamField[]NO_FIELDS

Method Summary

java.lang.ClassforClass()

Returns the class that this ObjectStreamClass represents.
java.io.ObjectStreamFieldgetField(java.lang.String name)

java.io.ObjectStreamField[]getFields()

java.lang.StringgetName()

Returns the name of the class that this ObjectStreamClass represents.
longgetSerialVersionUID()

Returns the serial version stream-unique identifier for the class represented by this ObjectStreamClass.
static java.io.ObjectStreamClasslookup(java.lang.Class cl)

Returns the ObjectStreamClass for cl.
java.lang.StringtoString()

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.

Field Details

NO_FIELDS

public static final ObjectStreamField[] NO_FIELDS


Method Details

forClass

public Class forClass()

Returns the class that this ObjectStreamClass represents. Null could be returned if this ObjectStreamClass was read from an ObjectInputStream and the class it represents cannot be found or loaded.

See Also:


getField

public ObjectStreamField getField(java.lang.String name)

Parameters:


getFields

public ObjectStreamField[] getFields()


getName

public String getName()

Returns the name of the class that this ObjectStreamClass represents.


getSerialVersionUID

public long getSerialVersionUID()

Returns the serial version stream-unique identifier for the class represented by this 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


lookup

public static ObjectStreamClass lookup(java.lang.Class cl)

Returns the 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.

Parameters:

See Also:


toString

public 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.

See Also: