|
|||||||||
| 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
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.
XDROutputStream| Field Summary |
| Fields inherited from class com.distinct.rpc.XDRStream |
alloc_size, buffer, in, out |
| Constructor Summary | |
XDROutputStream(java.io.OutputStream outp)
Creates a new XDROutputStream from a Java OutputStream. |
|
| Method Summary | |
int |
get_length()
Reports the number of bytes written to the XDROutputStream. |
void |
put_byte(byte b)
Writes one byte to the XDROutputStream. |
void |
put_bytes(byte[] b,
int n)
Writes a number of bytes to the XDROutputStream. |
void |
reset()
Just resets the written byte counter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XDROutputStream(java.io.OutputStream outp)
outp - The OutputStream where all the encoded data is written to.| Method Detail |
public void put_byte(byte b)
put_byte in class XDRStreamb - The byte to be written.
public void put_bytes(byte[] b,
int n)
put_bytes in class XDRStreamb - The bytes to be written (starting from index 0).n - The number of bytes to be written.public int get_length()
get_length in class XDRStreampublic void reset()
reset in class XDRStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||