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

Constructor Index

 o XDROutputStream(OutputStream)
Creates a new XDROutputStream from a Java OutputStream.

Method Index

 o get_length()
Reports the number of bytes written to the XDROutputStream.
 o put_byte(byte)
Writes one byte to the XDROutputStream.
 o put_bytes(byte[], int)
Writes a number of bytes to the XDROutputStream.
 o reset()
Just resets the written byte counter.

Constructors

 o 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.

Methods

 o 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
 o 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
 o 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
 o reset
 public void reset()
Just resets the written byte counter.

Overrides:
reset in class XDRStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index