diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2014-10-07 14:14:02 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2014-10-07 14:14:02 -0230 |
commit | 6ab5e3eefa98923840213d3167b7e26f4bfc2be1 (patch) | |
tree | ee958b3f5abad98ff42b106ff6d90bdcb9b75bdc /java/src/Ice/OutputStream.java | |
parent | version updates (diff) | |
download | ice-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/OutputStream.java')
-rw-r--r-- | java/src/Ice/OutputStream.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/java/src/Ice/OutputStream.java b/java/src/Ice/OutputStream.java index c86332d739d..3d8980ccef4 100644 --- a/java/src/Ice/OutputStream.java +++ b/java/src/Ice/OutputStream.java @@ -55,6 +55,14 @@ public interface OutputStream void writeByteSeq(byte[] v); /** + * Writes a ByteBuffer to the stream. + * + * @param v The ByteBuffer to write. + * Passing <code>null</code> causes an empty sequence to be written to the stream. + **/ + void writeByteBuffer(java.nio.ByteBuffer v); + + /** * Writes a serializable Java object to the stream. * * @param o The serializable object to write. @@ -77,6 +85,14 @@ public interface OutputStream void writeShortSeq(short[] v); /** + * Writes a ShortBuffer to the stream. + * + * @param v The ShortBuffer to write. + * Passing <code>null</code> causes an empty sequence to be written to the stream. + **/ + void writeShortBuffer(java.nio.ShortBuffer v); + + /** * Writes an integer to the stream. * * @param v The integer to write to the stream. @@ -92,6 +108,14 @@ public interface OutputStream void writeIntSeq(int[] v); /** + * Writes a IntBuffer to the stream. + * + * @param v The IntBuffer to write. + * Passing <code>null</code> causes an empty sequence to be written to the stream. + **/ + void writeIntBuffer(java.nio.IntBuffer v); + + /** * Writes a long to the stream. * * @param v The long to write to the stream. @@ -107,6 +131,14 @@ public interface OutputStream void writeLongSeq(long[] v); /** + * Writes a LongBuffer to the stream. + * + * @param v The LongBuffer to write. + * Passing <code>null</code> causes an empty sequence to be written to the stream. + **/ + void writeLongBuffer(java.nio.LongBuffer v); + + /** * Writes a float to the stream. * * @param v The float to write to the stream. @@ -122,6 +154,14 @@ public interface OutputStream void writeFloatSeq(float[] v); /** + * Writes a FloatBuffer to the stream. + * + * @param v The FloatBuffer to write. + * Passing <code>null</code> causes an empty sequence to be written to the stream. + **/ + void writeFloatBuffer(java.nio.FloatBuffer v); + + /** * Writes a double to the stream. * * @param v The double to write to the stream. @@ -137,6 +177,14 @@ public interface OutputStream void writeDoubleSeq(double[] v); /** + * Writes a DoubleBuffer to the stream. + * + * @param v The DoubleBuffer to write. + * Passing <code>null</code> causes an empty sequence to be written to the stream. + **/ + void writeDoubleBuffer(java.nio.DoubleBuffer v); + + /** * Writes a string to the stream. * * @param v The string to write to the stream. Passing <code>null</code> causes |