ObjectStreamField

public class ObjectStreamField extends Object
implements Comparable<Object>

Describes a field for the purpose of serialization. Classes can define the collection of fields that are serialized, which may be different from the set of all declared fields.

Public Constructor Summary

ObjectStreamField(String name, Class<?> cl)
Constructs an ObjectStreamField with the specified name and type.
ObjectStreamField(String name, Class<?> cl, boolean unshared)
Constructs an ObjectStreamField with the specified name, type and the indication if it is unshared.

Public Method Summary

int
compareTo(Object o)
Compares this field descriptor to the specified one.
String
getName()
Gets the name of this field.
int
getOffset()
Gets the offset of this field in the object.
Class<?>
getType()
Gets the type of this field.
char
getTypeCode()
Gets a character code for the type of this field.
String
getTypeString()
Gets the type signature used by the VM to represent the type of this field.
boolean