Package com.zeroc.Ice

Class ObjectInputStream

All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

public class ObjectInputStream extends ObjectInputStream
For deserialization of Slice types that contain a proxy, the application must instantiate a subclass of ObjectInputStream and supply a communicator that is used to reconstruct the proxy.
  • Constructor Details

    • ObjectInputStream

      public ObjectInputStream(Communicator communicator, InputStream stream) throws IOException
      Instantiates this class for the specified communicator and input stream.
      Parameters:
      communicator - The communicator to use to deserialize proxies.
      stream - The input stream to read from.
      Throws:
      IOException - If an I/O error occurs.
  • Method Details

    • getCommunicator

      public Communicator getCommunicator()
      Returns the communicator for this stream.
      Returns:
      The communicator.