summaryrefslogtreecommitdiff
path: root/java/src/Ice/ObjectInputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/Ice/ObjectInputStream.java')
-rw-r--r--java/src/Ice/ObjectInputStream.java43
1 files changed, 43 insertions, 0 deletions
diff --git a/java/src/Ice/ObjectInputStream.java b/java/src/Ice/ObjectInputStream.java
new file mode 100644
index 00000000000..bfd9d495fa5
--- /dev/null
+++ b/java/src/Ice/ObjectInputStream.java
@@ -0,0 +1,43 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package Ice;
+
+/**
+ * For deserialization of Slice types that contain a proxy, the application
+ * must instantiate a subclass of <code>ObjectInputStream</code> and supply
+ * a communicator that is used to reconstruct the proxy.
+ **/
+public class ObjectInputStream extends java.io.ObjectInputStream
+{
+ /**
+ * Instantiates this class for the specified communicator and input stream.
+ *
+ * @param communicator The communicator to use to deserialize proxies.
+ * @param stream The input stream to read from.
+ **/
+ public
+ ObjectInputStream(Communicator communicator, java.io.InputStream stream)
+ throws java.io.IOException
+ {
+ super(stream);
+ _communicator = communicator;
+ }
+
+ /**
+ * Returns the communicator for this stream.
+ **/
+ public Communicator
+ getCommunicator()
+ {
+ return _communicator;
+ }
+
+ private Communicator _communicator;
+}