|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.ObjectStreamClass.FieldReflector
Class for setting and retrieving serializable field values in batch.
Field Summary | |
private ObjectStreamField[] |
fields
fields to operate on |
private long[] |
keys
unsafe field keys |
private int |
numPrimFields
number of primitive fields |
private int[] |
offsets
field data offsets |
private char[] |
typeCodes
field type codes |
private Class[] |
types
field types |
private static sun.misc.Unsafe |
unsafe
handle for performing unsafe operations |
Constructor Summary | |
(package private) |
ObjectStreamClass.FieldReflector(ObjectStreamField[] fields)
Constructs FieldReflector capable of setting/getting values from the subset of fields whose ObjectStreamFields contain non-null reflective Field objects. |
Method Summary | |
(package private) ObjectStreamField[] |
getFields()
Returns list of ObjectStreamFields representing fields operated on by this reflector. |
(package private) void |
getObjFieldValues(Object obj,
Object[] vals)
Fetches the serializable object field values of object obj and stores them in array vals starting at offset 0. |
(package private) void |
getPrimFieldValues(Object obj,
byte[] buf)
Fetches the serializable primitive field values of object obj and marshals them into byte array buf starting at offset 0. |
(package private) void |
setObjFieldValues(Object obj,
Object[] vals)
Sets the serializable object fields of object obj using values from array vals starting at offset 0. |
(package private) void |
setPrimFieldValues(Object obj,
byte[] buf)
Sets the serializable primitive fields of object obj using values unmarshalled from byte array buf starting at offset 0. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final sun.misc.Unsafe unsafe
private final ObjectStreamField[] fields
private final int numPrimFields
private final long[] keys
private final int[] offsets
private final char[] typeCodes
private final Class[] types
Constructor Detail |
ObjectStreamClass.FieldReflector(ObjectStreamField[] fields)
Method Detail |
ObjectStreamField[] getFields()
void getPrimFieldValues(Object obj, byte[] buf)
void setPrimFieldValues(Object obj, byte[] buf)
void getObjFieldValues(Object obj, Object[] vals)
void setObjFieldValues(Object obj, Object[] vals)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |