summaryrefslogtreecommitdiff
path: root/java/src/Ice/Util.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-01-24 10:07:46 +0100
committerBenoit Foucher <benoit@zeroc.com>2013-01-24 10:07:46 +0100
commit566ae61db91d991dbaf38d280d285faddddce5a6 (patch)
tree4c014a63f061e29ee753e74d77bad414df801fd5 /java/src/Ice/Util.java
parentminor fixes to doc files (diff)
downloadice-566ae61db91d991dbaf38d280d285faddddce5a6.tar.bz2
ice-566ae61db91d991dbaf38d280d285faddddce5a6.tar.xz
ice-566ae61db91d991dbaf38d280d285faddddce5a6.zip
More fixes for ICE-4841 - changed createInputStream with bool parameter to wrapInputStream
Diffstat (limited to 'java/src/Ice/Util.java')
-rw-r--r--java/src/Ice/Util.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/java/src/Ice/Util.java b/java/src/Ice/Util.java
index 049d82f0e7f..94e3c6a55a6 100644
--- a/java/src/Ice/Util.java
+++ b/java/src/Ice/Util.java
@@ -440,7 +440,7 @@ public final class Util
public static InputStream
createInputStream(Communicator communicator, byte[] bytes)
{
- return createInputStream(communicator, bytes, true);
+ return new InputStreamI(communicator, bytes, true);
}
/**
@@ -455,12 +455,13 @@ public final class Util
public static InputStream
createInputStream(Communicator communicator, byte[] bytes, EncodingVersion v)
{
- return createInputStream(communicator, bytes, v, true);
+ return new InputStreamI(communicator, bytes, v, true);
}
/**
- * Creates an input stream for dynamic invocation and dispatch. The stream uses
- * the communicator's default encoding version.
+ * Wraps encoded data with an input stream for dynamic invocation
+ * and dispatch. The stream uses the communicator's default
+ * encoding version.
*
* @param communicator The communicator for the stream.
* @param bytes An encoded request or reply.
@@ -469,14 +470,14 @@ public final class Util
* @return The input stream.
**/
public static InputStream
- createInputStream(Communicator communicator, byte[] bytes, boolean copyBytes)
+ wrapInputStream(Communicator communicator, byte[] bytes)
{
- return new InputStreamI(communicator, bytes, copyBytes);
+ return new InputStreamI(communicator, bytes, false);
}
/**
- * Creates an input stream for dynamic invocation and dispatch. The stream uses
- * the given encoding version.
+ * Wraps encoded data with an input stream for dynamic invocation
+ * and dispatch. The stream uses the given encoding version.
*
* @param communicator The communicator for the stream.
* @param bytes An encoded request or reply.
@@ -486,9 +487,9 @@ public final class Util
* @return The input stream.
**/
public static InputStream
- createInputStream(Communicator communicator, byte[] bytes, EncodingVersion v, boolean copyBytes)
+ wrapInputStream(Communicator communicator, byte[] bytes, EncodingVersion v)
{
- return new InputStreamI(communicator, bytes, v, copyBytes);
+ return new InputStreamI(communicator, bytes, v, false);
}
/**