All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class distinct.rpc.XDRInputStream

java.lang.Object
   |
   +----distinct.rpc.XDRStream
           |
           +----distinct.rpc.XDRInputStream

public class XDRInputStream
extends XDRStream
XDRInputStream implements an XDRStream that reads all encoded data from an InputStream. Use only the "decode" methods of this Stream. All encode operations will fail. Use an instance of XDROutputStream to write data to a Stream.

See Also:
XDROutputStream

Constructor Index

 o XDRInputStream(InputStream)
Creates a new XDRInputStream from a Java InputStream.

Method Index

 o get_byte()
Reads one byte from the XDRInputStream.
 o get_bytes(int)
Reads a number of bytes from the XDRInputStream.
 o get_length()
Reports the number of bytes available in the XDRInputStream.
 o reset()
Clears the XDRInputStream.
 o setTimeout(long)
Obsolete since JDK 1.1.

Constructors

 o XDRInputStream
 public XDRInputStream(InputStream inp)
Creates a new XDRInputStream from a Java InputStream.

Parameters:
inp - The InputStream where all the encoded data is read from.

Methods

 o setTimeout
 public void setTimeout(long time_in_ms)
Obsolete since JDK 1.1.

 o get_byte
 public byte get_byte() throws RPCError
Reads one byte from the XDRInputStream. Used by the "decode" methods.

Throws: RPCError
When the call fails because of timeout, empty stream or other input error.
Overrides:
get_byte in class XDRStream
 o get_bytes
 public byte[] get_bytes(int n) throws RPCError
Reads a number of bytes from the XDRInputStream. Used by the "decode" methods.

Parameters:
n - The number of bytes to be read.
Throws: RPCError
When the call fails because of timeout, empty stream or other input error.
Overrides:
get_bytes in class XDRStream
 o get_length
 public int get_length()
Reports the number of bytes available in the XDRInputStream.

Returns:
Number of bytes available.
Overrides:
get_length in class XDRStream
 o reset
 public void reset()
Clears the XDRInputStream.

Overrides:
reset in class XDRStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index