com.threerings.export.util
Class SerializableWrapper

java.lang.Object
  extended by com.threerings.export.util.SerializableWrapper
All Implemented Interfaces:
Externalizable, Serializable

public class SerializableWrapper
extends Object
implements Externalizable

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

See Also:
Serialized Form

Field Summary
protected  Object _object
          The wrapped object.
 
Constructor Summary
SerializableWrapper()
          No-arg constructor for deserialization.
SerializableWrapper(Object object)
          Creates a new wrapper for the specified object.
 
Method Summary
 Object getObject()
          Returns a reference to the wrapped object.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_object

protected Object _object
The wrapped object.

Constructor Detail

SerializableWrapper

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


SerializableWrapper

public SerializableWrapper()
No-arg constructor for deserialization.

Method Detail

getObject

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


writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException