|
|||||||||
| 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.XDRInputStream
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.
XDROutputStream| Field Summary |
| Fields inherited from class com.distinct.rpc.XDRStream |
alloc_size, buffer, in, out |
| Constructor Summary | |
XDRInputStream(java.io.InputStream inp)
Creates a new XDRInputStream from a Java InputStream. |
|
| Method Summary | |
byte |
get_byte()
Reads one byte from the XDRInputStream. |
byte[] |
get_bytes(int n)
Reads a number of bytes from the XDRInputStream. |
int |
get_length()
Reports the number of bytes available in the XDRInputStream. |
void |
reset()
Clears the XDRInputStream. |
void |
setTimeout(long time_in_ms)
Obsolete since JDK 1.1. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XDRInputStream(java.io.InputStream inp)
inp - The InputStream where all the encoded data is read from.| Method Detail |
public void setTimeout(long time_in_ms)
public byte get_byte()
throws RPCError
get_byte in class XDRStreamRPCError - When the call fails because of timeout, empty stream or other input error.
public byte[] get_bytes(int n)
throws RPCError
get_bytes in class XDRStreamn - The number of bytes to be read.
RPCError - When the call fails because of timeout, empty stream or other input error.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 | ||||||||