summaryrefslogtreecommitdiff
path: root/java/src/Ice/InputStream.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-10-07 14:14:02 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-10-07 14:14:02 -0230
commit6ab5e3eefa98923840213d3167b7e26f4bfc2be1 (patch)
treeee958b3f5abad98ff42b106ff6d90bdcb9b75bdc /java/src/Ice/InputStream.java
parentversion updates (diff)
downloadice-6ab5e3eefa98923840213d3167b7e26f4bfc2be1.tar.bz2
ice-6ab5e3eefa98923840213d3167b7e26f4bfc2be1.tar.xz
ice-6ab5e3eefa98923840213d3167b7e26f4bfc2be1.zip
ICE-4324 Added support for java.nio.Buffer classes through metadata
Diffstat (limited to 'java/src/Ice/InputStream.java')
-rw-r--r--java/src/Ice/InputStream.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/java/src/Ice/InputStream.java b/java/src/Ice/InputStream.java
index eaee07cf7b9..b835c2107c8 100644
--- a/java/src/Ice/InputStream.java
+++ b/java/src/Ice/InputStream.java
@@ -63,6 +63,13 @@ public interface InputStream
byte[] readByteSeq();
/**
+ * Extracts a sequence of byte values from the stream as a ByteBuffer.
+ *
+ * @return The ByteBuffer wrapping the sequence.
+ **/
+ java.nio.ByteBuffer readByteBuffer();
+
+ /**
* Extracts a serializable Java object from the stream.
*
* @return The deserialized Java object.
@@ -84,6 +91,13 @@ public interface InputStream
short[] readShortSeq();
/**
+ * Extracts a sequence of short values from the stream as a ShortBuffer.
+ *
+ * @return The ShortBuffer wrapping the sequence.
+ **/
+ java.nio.ShortBuffer readShortBuffer();
+
+ /**
* Extracts an integer value from the stream.
*
* @return The extracted integer.
@@ -98,6 +112,13 @@ public interface InputStream
int[] readIntSeq();
/**
+ * Extracts a sequence of int values from the stream as a IntBuffer.
+ *
+ * @return The IntBuffer wrapping the sequence.
+ **/
+ java.nio.IntBuffer readIntBuffer();
+
+ /**
* Extracts a long value from the stream.
*
* @return The extracted long value.
@@ -112,6 +133,13 @@ public interface InputStream
long[] readLongSeq();
/**
+ * Extracts a sequence of long values from the stream as a LongBuffer.
+ *
+ * @return The LongBuffer wrapping the sequence.
+ **/
+ java.nio.LongBuffer readLongBuffer();
+
+ /**
* Extracts a float value from the stream.
*
* @return The extracted float value.
@@ -126,6 +154,13 @@ public interface InputStream
float[] readFloatSeq();
/**
+ * Extracts a sequence of float values from the stream as a FloatBuffer.
+ *
+ * @return The FloatBuffer wrapping the sequence.
+ **/
+ java.nio.FloatBuffer readFloatBuffer();
+
+ /**
* Extracts a double value from the stream.
*
* @return The extracted double value.
@@ -140,6 +175,13 @@ public interface InputStream
double[] readDoubleSeq();
/**
+ * Extracts a sequence of double values from the stream as a DoubleBuffer.
+ *
+ * @return The DoubleBuffer wrapping the sequence.
+ **/
+ java.nio.DoubleBuffer readDoubleBuffer();
+
+ /**
* Extracts a string from the stream.
*
* @return The extracted string.