diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-04-20 17:29:10 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-04-20 17:29:10 +0200 |
commit | 410311ac0dad54bbc0906085134b41e12ed44abb (patch) | |
tree | 678d75e04b90c289628c1ae79100317432bfe1d8 /java/src/Ice/Blobject.java | |
parent | Enabled again objects test (diff) | |
download | ice-410311ac0dad54bbc0906085134b41e12ed44abb.tar.bz2 ice-410311ac0dad54bbc0906085134b41e12ed44abb.tar.xz ice-410311ac0dad54bbc0906085134b41e12ed44abb.zip |
Java port
Diffstat (limited to 'java/src/Ice/Blobject.java')
-rw-r--r-- | java/src/Ice/Blobject.java | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/java/src/Ice/Blobject.java b/java/src/Ice/Blobject.java index 95d30859bf7..7e96c87ce4d 100644 --- a/java/src/Ice/Blobject.java +++ b/java/src/Ice/Blobject.java @@ -19,34 +19,27 @@ public abstract class Blobject extends Ice.ObjectImpl /** * Dispatch an incoming request. * - * @param inParams The encoded in-parameters for the operation. - * @param outParams The encoded out-paramaters and return value + * @param inEncaps The encoded in-parameters for the operation. + * @param outEncaps The encoded out-paramaters and return value * for the operation. The return value follows any out-parameters. * @param current The Current object to pass to the operation. * @return If the operation completed successfully, the return value * is <code>true</code>. If the operation raises a user exception, - * the return value is <code>false</code>; in this case, <code>outParams</code> + * the return value is <code>false</code>; in this case, <code>outEncaps</code> * must contain the encoded user exception. If the operation raises an * Ice run-time exception, it must throw it directly. **/ public abstract boolean - ice_invoke(byte[] inParams, ByteSeqHolder outParams, Current current); + ice_invoke(byte[] inEncaps, ByteSeqHolder outEncaps, Current current); public DispatchStatus __dispatch(IceInternal.Incoming in, Current current) { - byte[] inParams; - ByteSeqHolder outParams = new ByteSeqHolder(); - IceInternal.BasicStream is = in.is(); - is.startReadEncaps(); - int sz = is.getReadEncapsSize(); - inParams = is.readBlob(sz); - is.endReadEncaps(); - boolean ok = ice_invoke(inParams, outParams, current); - if(outParams.value != null) - { - in.os().writeBlob(outParams.value); - } + byte[] inEncaps; + ByteSeqHolder outEncaps = new ByteSeqHolder(); + inEncaps = in.readParamEncaps(); + boolean ok = ice_invoke(inEncaps, outEncaps, current); + in.__writeParamEncaps(outEncaps.value, ok); if(ok) { return DispatchStatus.DispatchOK; |