|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.io.FieldMarshaller
com.threerings.io.FieldMarshaller.MethodFieldMarshaller
protected static class FieldMarshaller.MethodFieldMarshaller
Uses custom accessor methods to read and write a field.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.io.FieldMarshaller |
|---|
FieldMarshaller.MethodFieldMarshaller, FieldMarshaller.StreamerMarshaller |
| Field Summary | |
|---|---|
protected Method |
_reader
|
protected Method |
_writer
|
| Fields inherited from class com.threerings.io.FieldMarshaller |
|---|
_internMarshaller, _marshallers, _type, READER_ARGS, WRITER_ARGS |
| Constructor Summary | |
|---|---|
FieldMarshaller.MethodFieldMarshaller(Method reader,
Method writer)
|
|
| Method Summary | |
|---|---|
void |
readField(Field field,
Object target,
ObjectInputStream in)
Reads the contents of the supplied field from the supplied stream and sets it in the supplied object. |
void |
writeField(Field field,
Object source,
ObjectOutputStream out)
Writes the contents of the supplied field in the supplied object to the supplied stream. |
| Methods inherited from class com.threerings.io.FieldMarshaller |
|---|
createMarshallers, getFieldMarshaller, getReaderMethodName, getWriterMethodName, toString, useFieldAccessors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Method _reader
protected Method _writer
| Constructor Detail |
|---|
public FieldMarshaller.MethodFieldMarshaller(Method reader,
Method writer)
| Method Detail |
|---|
public void readField(Field field,
Object target,
ObjectInputStream in)
throws Exception
FieldMarshaller
readField in class FieldMarshallerException
public void writeField(Field field,
Object source,
ObjectOutputStream out)
throws Exception
FieldMarshaller
writeField in class FieldMarshallerException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||