All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.io.ObjectStreamField

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

public class ObjectStreamField
extends Object
implements Comparator
A description of a field in a serializable class. A array of these is used to declare the persistent fields of a class.


Constructor Index

 o ObjectStreamField(String, Class)
Create a named field with the specified type.

Method Index

 o compare(Object, Object)
Compare this with another ObjectStreamField.
 o getField()
 o getName()
Get the name of this field.
 o getOffset()
 o getType()
Get the type of the field.
 o getTypeCode()
 o getTypeString()
 o setField(Field)
 o setOffset(int)
 o toString()
Return a string describing this field.

Constructors

 o ObjectStreamField
public ObjectStreamField(String n,
                         Class clazz)
Create a named field with the specified type.

Methods

 o getName
public String getName()
Get the name of this field.

 o getType
public Class getType()
Get the type of the field.

 o getTypeCode
public char getTypeCode()
 o getTypeString
public String getTypeString()
 o getField
public Field getField()
 o setField
public void setField(Field field)
 o getOffset
public int getOffset()
 o setOffset
public void setOffset(int offset)
 o compare
public int compare(Object o1,
                   Object o2)
Compare this with another ObjectStreamField. return -1 if this is smaller, 0 if equal, 1 if greater types that are primitives are "smaller" than objects. if equal, the names are compared.

 o toString
public String toString()
Return a string describing this field.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature