All Packages Class Hierarchy This Package Previous Next Index
Class distinct.rpc.XDROutputStream
java.lang.Object
|
+----distinct.rpc.XDRStream
|
+----distinct.rpc.XDROutputStream
- public class XDROutputStream
- extends XDRStream
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.
- See Also:
- XDROutputStream
-
XDROutputStream(OutputStream)
- Creates a new XDROutputStream from a Java OutputStream.
-
get_length()
- Reports the number of bytes written to the XDROutputStream.
-
put_byte(byte)
- Writes one byte to the XDROutputStream.
-
put_bytes(byte[], int)
- Writes a number of bytes to the XDROutputStream.
-
reset()
- Just resets the written byte counter.
XDROutputStream
public XDROutputStream(OutputStream outp)
- Creates a new XDROutputStream from a Java OutputStream.
- Parameters:
- outp - The OutputStream where all the encoded data is written to.
put_byte
public void put_byte(byte b)
- Writes one byte to the XDROutputStream. Used by the "encode" methods.
- Parameters:
- b - The byte to be written.
- Overrides:
- put_byte in class XDRStream
put_bytes
public void put_bytes(byte b[],
int n)
- Writes a number of bytes to the XDROutputStream. Used by the "encode" methods.
- Parameters:
- b - The bytes to be written (starting from index 0).
- n - The number of bytes to be written.
- Overrides:
- put_bytes in class XDRStream
get_length
public int get_length()
- Reports the number of bytes written to the XDROutputStream.
- Returns:
- Number of bytes written.
- Overrides:
- get_length in class XDRStream
reset
public void reset()
- Just resets the written byte counter.
- Overrides:
- reset in class XDRStream
All Packages Class Hierarchy This Package Previous Next Index