|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.distinct.rpc.XDRStream
|
+--com.distinct.rpc.XDROutputStream
|
+--com.distinct.rpc.XDRRecordOutputStream
XDROutputStream implements an XDRStream that sends all encoded data to an OutputStream. Use only the "encode" methods of this Stream. All decode operations will fail. Use an instance of XDRInputStream to read data from a Stream.
XDRRecordOutputStream| Field Summary |
| Fields inherited from class com.distinct.rpc.XDRStream |
alloc_size, buffer, in, out |
| Constructor Summary | |
XDRRecordOutputStream(java.io.OutputStream outp,
int asize)
Creates a new XDRRecordOutputStream from a Java OutputStream. |
|
| Method Summary | |
void |
flush()
Flushes the XDRRecordOutputStream. |
byte |
get_byte()
Always throws RPCDecodeError (This is an output stream!). |
byte[] |
get_bytes(int n)
Always throws RPCDecodeError (This is an output stream!). |
void |
put_byte(byte b)
Writes one byte to the XDRRecordOutputStream. |
void |
put_bytes(byte[] b,
int n)
Writes a number of bytes to the XDRRecordOutputStream. |
void |
reset()
Resets the stream. |
| Methods inherited from class com.distinct.rpc.XDROutputStream |
get_length |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XDRRecordOutputStream(java.io.OutputStream outp,
int asize)
outp - The OutputStream where all the encoded data is written to.| Method Detail |
public void put_byte(byte b)
put_byte in class XDROutputStreamb - The byte to be written.
public void put_bytes(byte[] b,
int n)
put_bytes in class XDROutputStreamb - The bytes to be written (starting from index 0).n - The number of bytes to be written.
public byte get_byte()
throws RPCError
get_byte in class XDRStreamRPCError - When the calls fails because of timeout, empty stream or other input error.
public byte[] get_bytes(int n)
throws RPCError
get_bytes in class XDRStreamn - The number of bytes to be read.
RPCError - When the calls fails because of timeout, empty stream or other input error.public void flush()
public void reset()
reset in class XDROutputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||