API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.io. ObjectStreamField View Source
Author(s)
Mike Warres
Roger Riggs
Since
1.2
Version
1.47, 06/04/07
Serial
Hierarchy
 Object
      ObjectStreamField
Implements
 Comparable
Subclasses
Description
public class ObjectStreamField
  A description of a Serializable field from a Serializable class.
See also:    ObjectStreamClass
Constructors
pack-private ObjectStreamField (Field field, boolean unshared, boolean showType)
  Creates an ObjectStreamField representing the given field with the specified unshared setting.
public ObjectStreamField (String name, Class<Object> type)
  Create a Serializable field with the specified type.
public ObjectStreamField (String name, Class<Object> type, boolean unshared)
  Creates an ObjectStreamField representing a serializable field with the given name and type.
pack-private ObjectStreamField (String name, String signature, boolean unshared)
Creates an ObjectStreamField representing a field with the given name, signature and unshared setting.
Methods
Hide/Show inherited methods
public int compareTo (Object obj)
  Compare this field with another ObjectStreamField.
pack-private Field getField ()
Returns field represented by this ObjectStreamField, or null if ObjectStreamField is not associated with an actual field.
public String getName ()
  Get the name of this field.
public int getOffset ()
  Offset of field within instance data.
pack-private String getSignature ()
Returns JVM type signature of field (similar to getTypeString, except that signature strings are returned for primitive fields as well).
public Class<Object> getType ()
  Get the type of the field.
public char getTypeCode ()
  Returns character encoding of field type.
public String getTypeString ()
  Return the JVM type signature.
public boolean isPrimitive ()
  Return true if this field has a primitive type.
public boolean isUnshared ()
  Returns boolean value indicating whether or not the serializable field represented by this ObjectStreamField instance is unshared.
protected void setOffset (int offset)
  Offset within instance data.
public String toString ()
Return a string that describes this field.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar