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
-
XDRInputStream(InputStream)
- Creates a new XDRInputStream from a Java InputStream.
-
get_byte()
- Reads one byte from the XDRInputStream.
-
get_bytes(int)
- Reads a number of bytes from the XDRInputStream.
-
get_length()
- Reports the number of bytes available in the XDRInputStream.
-
reset()
- Clears the XDRInputStream.
-
setTimeout(long)
- Obsolete since JDK 1.1.
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.
setTimeout
public void setTimeout(long time_in_ms)
- Obsolete since JDK 1.1.
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
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
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
reset
public void reset()
- Clears the XDRInputStream.
- Overrides:
- reset in class XDRStream
All Packages Class Hierarchy This Package Previous Next Index