diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-06-13 16:19:58 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-06-13 16:19:58 -0700 |
commit | f1f199b777e32d0ff2a566af6eaa363d391aa18e (patch) | |
tree | 4cf8e91f33967c24f2369319585057df222503f7 /java/src/Ice/OutputStream.java | |
parent | Fixed support unknown types in unknown optionals (diff) | |
download | ice-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.java | 30 |
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. * |