summaryrefslogtreecommitdiff
path: root/java/src/Ice/OutputStream.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-06-13 16:19:58 -0700
committerMark Spruiell <mes@zeroc.com>2012-06-13 16:19:58 -0700
commitf1f199b777e32d0ff2a566af6eaa363d391aa18e (patch)
tree4cf8e91f33967c24f2369319585057df222503f7 /java/src/Ice/OutputStream.java
parentFixed support unknown types in unknown optionals (diff)
downloadice-f1f199b777e32d0ff2a566af6eaa363d391aa18e.tar.bz2
ice-f1f199b777e32d0ff2a566af6eaa363d391aa18e.tar.xz
ice-f1f199b777e32d0ff2a566af6eaa363d391aa18e.zip
* Minor C++ fixes
* Adding UnknownSlicedObject in Java
Diffstat (limited to 'java/src/Ice/OutputStream.java')
-rw-r--r--java/src/Ice/OutputStream.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/java/src/Ice/OutputStream.java b/java/src/Ice/OutputStream.java
index e86c20983a7..7d7df18b576 100644
--- a/java/src/Ice/OutputStream.java
+++ b/java/src/Ice/OutputStream.java
@@ -175,6 +175,14 @@ public interface OutputStream
void writeObject(Ice.Object v);
/**
+ * Write an enumerated value.
+ *
+ * @param v The enumerator.
+ * @param limit The number of enumerators in the definition.
+ **/
+ void writeEnum(int v, int limit);
+
+ /**
* Writes a user exception to the stream.
*
* @param id The user exception to write.
@@ -243,6 +251,13 @@ public interface OutputStream
void endEncapsulation();
/**
+ * Determines the current encoding version.
+ *
+ * @return The encoding version.
+ **/
+ EncodingVersion getEncoding();
+
+ /**
* Writes the state of Slice classes whose index was previously
* written with {@link #writeObject} to the stream.
**/
@@ -256,6 +271,21 @@ public interface OutputStream
byte[] finished();
/**
+ * Determines the current position in the stream.
+ *
+ * @return The current position.
+ **/
+ int pos();
+
+ /**
+ * Inserts a fixed 32-bit size value into the stream at the given position.
+ *
+ * @param pos The position at which to write the value.
+ * @param sz The size value.
+ **/
+ void rewrite(int pos, int sz);
+
+ /**
* Resets this output stream. This method allows the stream to be reused, to avoid creating
* unnecessary garbage.
*