|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.io.Streamer
com.threerings.io.Streamer.ArrayStreamer
protected static class Streamer.ArrayStreamer
A streamer for array types.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.io.Streamer |
|---|
Streamer.ArrayStreamer, Streamer.ByteEnumStreamer, Streamer.ByteOrdEnumStreamer, Streamer.ClassStreamer, Streamer.CustomClassStreamer, Streamer.EnumPolicy, Streamer.EnumStreamer, Streamer.FinalArrayStreamer, Streamer.IntOrdEnumStreamer, Streamer.NameEnumStreamer, Streamer.OrdEnumStreamer, Streamer.ShortOrdEnumStreamer |
| Field Summary | |
|---|---|
protected Class<?> |
_componentType
The class of our component type. |
| Fields inherited from class com.threerings.io.Streamer |
|---|
_streamers, ENUM_POLICY, FIELD_NAME_ORDER, IS_STREAMABLE, IS_STREAMCLOSURE, READER_ARGS, READER_METHOD_NAME, SORT_FIELDS, WRITER_ARGS, WRITER_METHOD_NAME |
| Constructor Summary | |
|---|---|
protected |
Streamer.ArrayStreamer(Class<?> componentType)
Constructor. |
| Method Summary | |
|---|---|
Object |
createObject(ObjectInputStream in)
Creates a blank object that can subsequently be read by this streamer. |
void |
readObject(Object object,
ObjectInputStream in,
boolean useReader)
Reads and populates the fields of the supplied object from the specified stream. |
protected Objects.ToStringHelper |
toStringHelper()
Overrideable to add more information to this class' toString() representation. |
void |
writeObject(Object object,
ObjectOutputStream out,
boolean useWriter)
Writes the supplied object to the specified stream. |
| Methods inherited from class com.threerings.io.Streamer |
|---|
create, getCollectionClass, getStreamer, getStreamerClass, isStreamable, maybeInit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Class<?> _componentType
| Constructor Detail |
|---|
protected Streamer.ArrayStreamer(Class<?> componentType)
| Method Detail |
|---|
public void writeObject(Object object,
ObjectOutputStream out,
boolean useWriter)
throws IOException
Streamer
writeObject in class Streamerobject - 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.
IOException
public Object createObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
Streamer
createObject in class StreamerIOException
ClassNotFoundException
public void readObject(Object object,
ObjectInputStream in,
boolean useReader)
throws IOException,
ClassNotFoundException
Streamer
readObject in class Streamerobject - the instance to be read from the stream.in - the stream from which to read the instance.useReader - whether or not to use the custom readObject if one exists.
IOException
ClassNotFoundExceptionprotected Objects.ToStringHelper toStringHelper()
Streamer
toStringHelper in class Streamer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||