com.threerings.io
Class FieldMarshaller.StreamerMarshaller

java.lang.Object
  extended by com.threerings.io.FieldMarshaller
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.io.FieldMarshaller
FieldMarshaller.MethodFieldMarshaller, FieldMarshaller.StreamerMarshaller
 
Field Summary
protected  Streamer _streamer
          The streamer we use to read and write our field.
 
Fields inherited from class com.threerings.io.FieldMarshaller
_internMarshaller, _marshallers, _type, READER_ARGS, WRITER_ARGS
 
Constructor Summary
FieldMarshaller.StreamerMarshaller(Streamer streamer)
           
 
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.
 String toString()
           
 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, useFieldAccessors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_streamer

protected Streamer _streamer
The streamer we use to read and write our field.

Constructor Detail

FieldMarshaller.StreamerMarshaller

public FieldMarshaller.StreamerMarshaller(Streamer streamer)
Method Detail

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