summaryrefslogtreecommitdiff
path: root/java/src/Ice/InputStream.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/InputStream.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/InputStream.java')
-rw-r--r--java/src/Ice/InputStream.java40
1 files changed, 38 insertions, 2 deletions
diff --git a/java/src/Ice/InputStream.java b/java/src/Ice/InputStream.java
index d7194e757f1..140551f042d 100644
--- a/java/src/Ice/InputStream.java
+++ b/java/src/Ice/InputStream.java
@@ -189,6 +189,14 @@ public interface InputStream
void readObject(ReadObjectCallback cb);
/**
+ * Read an enumerated value.
+ *
+ * @param limit The number of enumerators in the definition.
+ * @return The enumerator.
+ **/
+ int readEnum(int limit);
+
+ /**
* Extracts a user exception from the stream and throws it.
**/
void throwException() throws UserException;
@@ -247,7 +255,7 @@ public interface InputStream
*
* @return The encapsulation encoding version.
**/
- Ice.EncodingVersion startEncapsulation();
+ EncodingVersion startEncapsulation();
/**
* Indicates that the end of an encapsulation has been reached.
@@ -259,7 +267,14 @@ public interface InputStream
*
* @return The encapsulation encoding version.
**/
- Ice.EncodingVersion skipEncapsulation();
+ EncodingVersion skipEncapsulation();
+
+ /**
+ * Determines the current encoding version.
+ *
+ * @return The encoding version.
+ **/
+ EncodingVersion getEncoding();
/**
* Indicates that unmarshaling is complete, except for any Slice objects. The application must call this method
@@ -275,6 +290,27 @@ public interface InputStream
void rewind();
/**
+ * Skips ahead in the stream.
+ *
+ * @param sz The number of bytes to skip.
+ **/
+ void skip(int sz);
+
+ /**
+ * Skips over a size value.
+ **/
+ void skipSize();
+
+ /**
+ * Determine if an optional value is available for reading.
+ *
+ * @param tag The tag associated with the value.
+ * @param type The optional type for the value.
+ * @return True if the value is present, false otherwise.
+ **/
+ boolean readOptional(int tag, OptionalType type);
+
+ /**
* Destroys the stream and its associated resources. The application must call <code>destroy</code> prior
* to releasing the last reference to a stream; failure to do so may result in resource leaks.
**/