com.threerings.io
Class BasicStreamers.CharArrayStreamer

java.lang.Object
  extended by com.threerings.io.Streamer
      extended by com.threerings.io.BasicStreamers.BasicStreamer
          extended by com.threerings.io.BasicStreamers.CharArrayStreamer
Enclosing class:
BasicStreamers

public static class BasicStreamers.CharArrayStreamer
extends BasicStreamers.BasicStreamer

Streams arrays of chars.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.io.Streamer
Streamer.EnumReader
 
Field Summary
 
Fields inherited from class com.threerings.io.Streamer
_delegate, _fields, _isStreamableFieldPred, _marshallers, _reader, _streamers, _target, _writer, READER_ARGS, READER_METHOD_NAME, WRITER_ARGS, WRITER_METHOD_NAME
 
Constructor Summary
BasicStreamers.CharArrayStreamer()
           
 
Method Summary
 Object createObject(ObjectInputStream in)
          Creates a blank object that can subsequently be read by this streamer.
 void writeObject(Object object, ObjectOutputStream out, boolean useWriter)
          Writes the supplied object to the specified stream.
 
Methods inherited from class com.threerings.io.BasicStreamers.BasicStreamer
readObject
 
Methods inherited from class com.threerings.io.Streamer
getStreamer, getStreamerClass, isStreamable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicStreamers.CharArrayStreamer

public BasicStreamers.CharArrayStreamer()
Method Detail

createObject

public Object createObject(ObjectInputStream in)
                    throws IOException
Description copied from class: Streamer
Creates a blank object that can subsequently be read by this streamer. Data may be read from the input stream as a result of this method (in the case of arrays, the length of the array must be read before creating the array).

Overrides:
createObject in class Streamer
Throws:
IOException

writeObject

public void writeObject(Object object,
                        ObjectOutputStream out,
                        boolean useWriter)
                 throws IOException
Description copied from class: Streamer
Writes the supplied object to the specified stream.

Overrides:
writeObject in class Streamer
Parameters:
object - the instance to be written to the stream.
out - the stream to which to write the instance.
useWriter - whether or not to use the custom writeObject if one exists.
Throws:
IOException