com.threerings.io
Class FieldMarshaller.StreamerMarshaller
java.lang.Object
com.threerings.io.FieldMarshaller
com.threerings.io.FieldMarshaller.StreamerMarshaller
- Enclosing class:
- FieldMarshaller
protected static class FieldMarshaller.StreamerMarshaller
- extends FieldMarshaller
Used to marshall and unmarshall classes for which we have a basic Streamer.
|
Field Summary |
protected Streamer |
_streamer
The streamer we use to read and write our field. |
_streamer
protected Streamer _streamer
- The streamer we use to read and write our field.
FieldMarshaller.StreamerMarshaller
public FieldMarshaller.StreamerMarshaller(Streamer streamer)
readField
public void readField(Field field,
Object target,
ObjectInputStream in)
throws Exception
- Description copied from class:
FieldMarshaller
- Reads the contents of the supplied field from the supplied stream and sets it in the
supplied object.
- Specified by:
readField in class FieldMarshaller
- Throws:
Exception
writeField
public void writeField(Field field,
Object source,
ObjectOutputStream out)
throws Exception
- Description copied from class:
FieldMarshaller
- Writes the contents of the supplied field in the supplied object to the supplied stream.
- Specified by:
writeField in class FieldMarshaller
- Throws:
Exception
toString
public String toString()
- Overrides:
toString in class FieldMarshaller