com.threerings.export.util
Class StreamableWrapper

java.lang.Object
  extended by com.threerings.io.SimpleStreamableObject
      extended by com.threerings.export.util.StreamableWrapper
All Implemented Interfaces:
com.threerings.io.Streamable

public class StreamableWrapper
extends com.threerings.io.SimpleStreamableObject

Wraps an exportable object so that it can be streamed (in an inefficient manner, by creating a new BinaryExporter).


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
com.threerings.io.Streamable.Closure
 
Constructor Summary
StreamableWrapper()
          No-arg constructor for deserialization.
StreamableWrapper(Object object)
          Creates a new wrapper for the specified object.
 
Method Summary
 Object getObject()
          Returns a reference to the wrapped object.
 void readObject(com.threerings.io.ObjectInputStream in)
          Reads the object state from the specified stream.
 void writeObject(com.threerings.io.ObjectOutputStream out)
          Writes the object to the specified stream.
 
Methods inherited from class com.threerings.io.SimpleStreamableObject
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamableWrapper

public StreamableWrapper(Object object)
Creates a new wrapper for the specified object.


StreamableWrapper

public StreamableWrapper()
No-arg constructor for deserialization.

Method Detail

getObject

public Object getObject()
Returns a reference to the wrapped object.


writeObject

public void writeObject(com.threerings.io.ObjectOutputStream out)
                 throws IOException
Writes the object to the specified stream.

Throws:
IOException

readObject

public void readObject(com.threerings.io.ObjectInputStream in)
                throws IOException,
                       ClassNotFoundException
Reads the object state from the specified stream.

Throws:
IOException
ClassNotFoundException


Copyright © 2011. All Rights Reserved.