com.threerings.io
Class UnreliableObjectInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by com.threerings.io.ObjectInputStream
                  extended by com.threerings.io.UnreliableObjectInputStream
All Implemented Interfaces:
Closeable, DataInput

public class UnreliableObjectInputStream
extends ObjectInputStream

The counterpart of UnreliableObjectOutputStream.


Field Summary
 
Fields inherited from class com.threerings.io.ObjectInputStream
_classmap, _current, _internmap, _loader, _streamer, _translations, STREAM_DEBUG
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UnreliableObjectInputStream(InputStream source)
          Constructs an object input stream which will read its data from the supplied source stream.
 
Method Summary
protected  com.threerings.io.ClassMapping mapClass(short code, String cname)
          Creates, adds, and returns the class mapping for the specified code and class name.
protected  void mapIntern(short code, String value)
          Adds the intern mapping for the specified code and value.
 
Methods inherited from class com.threerings.io.ObjectInputStream
addTranslation, createClassMapping, defaultReadObject, readBareObject, readBareObject, readClassMapping, readIntern, readObject, readUnmodifiedUTF, setClassLoader, toString
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnreliableObjectInputStream

public UnreliableObjectInputStream(InputStream source)
Constructs an object input stream which will read its data from the supplied source stream.

Method Detail

mapClass

protected com.threerings.io.ClassMapping mapClass(short code,
                                                  String cname)
                                           throws IOException,
                                                  ClassNotFoundException
Description copied from class: ObjectInputStream
Creates, adds, and returns the class mapping for the specified code and class name.

Overrides:
mapClass in class ObjectInputStream
Throws:
IOException
ClassNotFoundException

mapIntern

protected void mapIntern(short code,
                         String value)
Description copied from class: ObjectInputStream
Adds the intern mapping for the specified code and value.

Overrides:
mapIntern in class ObjectInputStream