com.threerings.presents.client
Class ClientObjectInputStream

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.presents.client.ClientObjectInputStream
All Implemented Interfaces:
Closeable, DataInput

public class ClientObjectInputStream
extends ObjectInputStream

A specialized ObjectInputStream used in conjunction with Client to allow instances that are read from the stream to obtain a client reference "on their way in". We use this to allow invocation marshallers to get a reference to the client with which they are associated when they are streamed in over the network.


Field Summary
 Client client
          The client with which this input stream is associated.
 
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
ClientObjectInputStream(Client client, InputStream source)
           
 
Method Summary
 
Methods inherited from class com.threerings.io.ObjectInputStream
addTranslation, createClassMapping, defaultReadObject, mapClass, mapIntern, 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
 

Field Detail

client

public final Client client
The client with which this input stream is associated.

Constructor Detail

ClientObjectInputStream

public ClientObjectInputStream(Client client,
                               InputStream source)