summaryrefslogtreecommitdiff
path: root/java/src/Ice/OutputStream.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-10-20 00:04:40 +0000
committerMark Spruiell <mes@zeroc.com>2004-10-20 00:04:40 +0000
commit486c95495b7457fa035001ba026b1b9b848b794b (patch)
tree3bf070fb9ec87b39ab3423823fdad0efb94c7013 /java/src/Ice/OutputStream.java
parentWin32 fixes (diff)
downloadice-486c95495b7457fa035001ba026b1b9b848b794b.tar.bz2
ice-486c95495b7457fa035001ba026b1b9b848b794b.tar.xz
ice-486c95495b7457fa035001ba026b1b9b848b794b.zip
adding streaming interface
Diffstat (limited to 'java/src/Ice/OutputStream.java')
-rw-r--r--java/src/Ice/OutputStream.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/java/src/Ice/OutputStream.java b/java/src/Ice/OutputStream.java
new file mode 100644
index 00000000000..2c8022b483e
--- /dev/null
+++ b/java/src/Ice/OutputStream.java
@@ -0,0 +1,54 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2004 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;
+
+public interface OutputStream
+{
+ Communicator communicator();
+
+ void writeBool(boolean v);
+ void writeBoolSeq(boolean[] v);
+
+ void writeByte(byte v);
+ void writeByteSeq(byte[] v);
+
+ void writeShort(short v);
+ void writeShortSeq(short[] v);
+
+ void writeInt(int v);
+ void writeIntSeq(int[] v);
+
+ void writeLong(long v);
+ void writeLongSeq(long[] v);
+
+ void writeFloat(float v);
+ void writeFloatSeq(float[] v);
+
+ void writeDouble(double v);
+ void writeDoubleSeq(double[] v);
+
+ void writeString(String v);
+ void writeStringSeq(String[] v);
+
+ void writeSize(int sz);
+
+ void writeProxy(ObjectPrx v);
+
+ void writeObject(Ice.Object v);
+
+ void writeTypeId(String id);
+
+ void writeException(UserException ex);
+
+ void startSlice();
+ void endSlice();
+
+ byte[] finished();
+}