diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-06-15 15:00:48 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-06-15 15:00:48 -0700 |
commit | 3ff1990582c91418554b00c22314a67bba04de2a (patch) | |
tree | bfaa6b82c33ed17db496042834200641ed3ce670 /java/src/Ice/OutputStream.java | |
parent | * Minor C++ fixes (diff) | |
download | ice-3ff1990582c91418554b00c22314a67bba04de2a.tar.bz2 ice-3ff1990582c91418554b00c22314a67bba04de2a.tar.xz ice-3ff1990582c91418554b00c22314a67bba04de2a.zip |
* Grammar fixes
* Implementing optional data members in Java
Diffstat (limited to 'java/src/Ice/OutputStream.java')
-rw-r--r-- | java/src/Ice/OutputStream.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/java/src/Ice/OutputStream.java b/java/src/Ice/OutputStream.java index 7d7df18b576..b54fc8a3f92 100644 --- a/java/src/Ice/OutputStream.java +++ b/java/src/Ice/OutputStream.java @@ -264,6 +264,14 @@ public interface OutputStream void writePendingObjects(); /** + * Write the header information for an optional value. + * + * @param tag The numeric tag associated with the value. + * @param type The optional type of the value. + **/ + void writeOptional(int tag, Ice.OptionalType type); + + /** * Indicates that marshaling of a request or reply is finished. * * @return The byte sequence containing the encoded request or reply. @@ -280,10 +288,10 @@ public interface OutputStream /** * Inserts a fixed 32-bit size value into the stream at the given position. * + * @param sz The 32-bit size value. * @param pos The position at which to write the value. - * @param sz The size value. **/ - void rewrite(int pos, int sz); + void rewrite(int sz, int pos); /** * Resets this output stream. This method allows the stream to be reused, to avoid creating |