|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.ObjectStreamField
ObjectStreamClass
Constructor Summary | |
ObjectStreamField(String n,
Class clazz)
Create a Serializable field with the specified type. |
Method Summary | |
int | compareTo(Object o)
Compare this field with another ObjectStreamField .
|
String | getName()
Get the name of this field. |
int | getOffset()
Offset of field within instance data. |
Class | getType()
Get the type of the field. |
char | getTypeCode()
Returns character encoding of field type. |
String | getTypeString()
Return the JVM type signature. |
boolean | isPrimitive()
Return true if this field has a primitive type. |
protected void | setOffset(int offset)
Offset within instance data. |
String | toString()
Return a string that describes this field. |
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
Constructor Detail |
public ObjectStreamField(String n, Class clazz)
serialField
tag.Method Detail |
public String getName()
public Class getType()
public char getTypeCode()
B byte C char D double F float I int J long L class or interface S short Z boolean [ array
public String getTypeString()
public int getOffset()
protected void setOffset(int offset)
public boolean isPrimitive()
public int compareTo(Object o)
ObjectStreamField
.
Return -1 if this is smaller, 0 if equal, 1 if greater.
Types that are primitives are "smaller" than object types.
If equal, the field names are compared.public String toString()
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |