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, applications must instantiate a subclass of ObjectInputStream and supply a communicator that is used to construct the proxy.
  • Constructor Details

    • ObjectInputStream

      public ObjectInputStream(Communicator communicator, InputStream stream) throws IOException
      Creates an ObjectInputStream with 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 used by this stream.
      Returns:
      the communicator