summaryrefslogtreecommitdiff
path: root/java/src/Ice/OutputStream.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-07-17 12:36:00 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-07-17 12:36:00 -0230
commit93fdab6fa782511ef569acb17352853646aa66b5 (patch)
tree1e73a243303f1d9564499f0b7a036b4484cc1671 /java/src/Ice/OutputStream.java
parentC# transceiver fixes (diff)
downloadice-93fdab6fa782511ef569acb17352853646aa66b5.tar.bz2
ice-93fdab6fa782511ef569acb17352853646aa66b5.tar.xz
ice-93fdab6fa782511ef569acb17352853646aa66b5.zip
ICE-5481 startSize/endSize methods aren't designed to be "reentrant"
Diffstat (limited to 'java/src/Ice/OutputStream.java')
-rw-r--r--java/src/Ice/OutputStream.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/java/src/Ice/OutputStream.java b/java/src/Ice/OutputStream.java
index bd42dc36225..c86332d739d 100644
--- a/java/src/Ice/OutputStream.java
+++ b/java/src/Ice/OutputStream.java
@@ -288,16 +288,20 @@ public interface OutputStream
void rewrite(int sz, int pos);
/**
- * Records the current position and allocates four bytes for a fixed-length (32-bit)
+ * Returns the current position and allocates four bytes for a fixed-length (32-bit)
* size value.
+ *
+ * @return The current position.
**/
- void startSize();
+ int startSize();
/**
* Computes the amount of data written since the previous call to startSize and
* writes that value at the saved position.
+ *
+ * @param The saved position.
**/
- void endSize();
+ void endSize(int pos);
/**
* Indicates that marshaling of a request or reply is finished.