|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--com.distinct.rpc.XDRStream
|
+--com.distinct.rpc.XDRInputStream
|
+--com.distinct.rpc.XDRRecordInputStream
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.
XDRRecordInputStream| Fields inherited from class com.distinct.rpc.XDRStream |
alloc_size, buffer, in, out |
| Constructor Summary | |
XDRRecordInputStream(java.io.InputStream inp)
Creates a new XDRInputStream from a Java InputStream. |
|
| Method Summary | |
byte |
get_byte()
Reads one byte from the XDRRecordInputStream. |
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. |
| Methods inherited from class com.distinct.rpc.XDRInputStream |
setTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XDRRecordInputStream(java.io.InputStream inp)
inp - The InputStream where all the encoded data is read from.| Method Detail |
public byte get_byte()
throws RPCError
get_byte in class XDRInputStreamRPCError - 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 XDRInputStreamn - 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 XDRInputStreampublic void reset()
reset in class XDRInputStream
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||