|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--galaxy.io.XdrInBuffer
This class reads data from a XDR-encoded byte array or input stream.
Field Summary | |
static int |
FALSE
Integer value of "false". |
static int |
TRUE
Integer value of "true". |
Constructor Summary | |
XdrInBuffer(byte[] bytes)
Creates a XDR input buffer based on a specified byte array. |
|
XdrInBuffer(java.io.DataInputStream inStream)
Creates a XDR input buffer based on a specified input stream. |
Method Summary | |
int |
readBoolean()
Reads a boolean value from the input buffer. |
byte[] |
readBytes(int length)
Reads an array of bytes from the buffer. |
double |
readDouble()
Reads a 64-bit floating point value from the input buffer. |
double[] |
readDoubleArray(int length)
Reads an array of 64-bit floating point numbers from the buffer. |
int |
readEnumeration()
Reads an enumerated type value from the input buffer. |
void |
readFixedLengthOpaqueData(byte[] bytes)
Reads an array of bytes from the input buffer. |
float |
readFloat()
Reads a 32-bit floating point value from the input buffer. |
float[] |
readFloatArray(int length)
Reads an array of 32-bit floating point numbers from the buffer. |
int |
readInteger()
Reads a 32-bit signed integer value from the input buffer. |
int[] |
readIntegerArray(int length)
Reads an array of 32-bit integers from the buffer. |
long |
readLong()
Reads a 64-bit signed integer value from the input buffer. |
long[] |
readLongArray(int length)
Reads an array of 64-bit integers from the buffer. |
short[] |
readShortArray(int length)
Reads an array of 16-bit integers from the buffer. |
java.lang.String |
readString()
Reads a string value from the input buffer. |
byte[] |
readVariableLengthOpaqueData()
Reads an array of bytes from the input buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FALSE
public static final int TRUE
Constructor Detail |
public XdrInBuffer(byte[] bytes)
bytes
- the buffer's datapublic XdrInBuffer(java.io.DataInputStream inStream)
inStream
- the input streamMethod Detail |
public int readInteger() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic int readEnumeration() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic int readBoolean() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic long readLong() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic float readFloat() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic double readDouble() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic void readFixedLengthOpaqueData(byte[] bytes) throws java.io.IOException
bytes
argument.bytes
- the array that the bytes will be read intojava.io.IOException
- if an I/O error occurspublic byte[] readVariableLengthOpaqueData() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic java.lang.String readString() throws java.io.UnsupportedEncodingException, java.io.IOException
java.io.UnsupportedEncodingException
- if the string encoding format
(ISO-8859-1) is not available on the local platformjava.io.IOException
- if an I/O error occurspublic short[] readShortArray(int length) throws java.io.IOException
length
- the size of the array to readpublic int[] readIntegerArray(int length) throws java.io.IOException
length
- the size of the array to readpublic long[] readLongArray(int length) throws java.io.IOException
length
- the size of the array to readpublic float[] readFloatArray(int length) throws java.io.IOException
length
- the size of the array to readpublic double[] readDoubleArray(int length) throws java.io.IOException
length
- the size of the array to readpublic byte[] readBytes(int length) throws java.io.IOException
length
- the number of bytes to read
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |