|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--galaxy.io.XdrOutBuffer
This class writes data to a XDR-encoded byte array.
Field Summary | |
static int |
FALSE
Integer value of "false". |
static int |
TRUE
Integer value of "true". |
Constructor Summary | |
XdrOutBuffer()
Constructor. |
Method Summary | |
byte[] |
getOutBuffer()
Returns the contents of this buffer as a byte array. |
void |
writeBoolean(boolean booleanValue)
Writes a Java boolean value to the output buffer. |
boolean |
writeBoolean(int booleanValue)
Writes an integer boolean value to the output buffer. |
void |
writeDouble(double doubleValue)
Writes a 64-bit floating point value to the output buffer. |
void |
writeDoubleArray(double[] doubleArray)
Writes an array of 64-bit floating point numbers to the buffer. |
void |
writeEnumeration(int enumeratedValue)
Writes an enumerated type value to the output buffer. |
void |
writeFixedLengthOpaqueData(byte[] bytes)
Writes an opaque (i.e., uninterpreted) array of bytes to the output buffer. |
void |
writeFloat(float floatValue)
Writes a 32-bit floating point value to the output buffer. |
void |
writeFloatArray(float[] floatArray)
Writes an array of 32-bit floating point numbers to the buffer. |
void |
writeInteger(int intValue)
Writes a 32-bit signed integer value to the output buffer. |
void |
writeIntegerArray(int[] intArray)
Writes an array of 32-bit integers to the buffer. |
void |
writeLong(long longValue)
Writes a 64-bit signed integer value to the output buffer. |
void |
writeLongArray(long[] longArray)
Writes an array of 64-bit integers to the buffer. |
void |
writeShortArray(short[] shortArray)
Writes an array of 16-bit integers to the buffer. |
void |
writeString(java.lang.String stringValue)
Writes a string to the output buffer. |
void |
writeVariableLengthOpaqueData(byte[] bytes)
Writes an opaque (i.e., uninterpreted) array of bytes to the output 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 XdrOutBuffer()
Method Detail |
public byte[] getOutBuffer()
public void writeInteger(int intValue) throws java.io.IOException
intValue
- the integer valuejava.io.IOException
- if an I/O error occurspublic void writeEnumeration(int enumeratedValue) throws java.io.IOException
enumeratedValue
- the enumerated type valuejava.io.IOException
- if an I/O error occurspublic void writeBoolean(boolean booleanValue) throws java.io.IOException
booleanValue
- the boolean valuejava.io.IOException
- if an I/O error occurspublic boolean writeBoolean(int booleanValue) throws java.io.IOException
booleanValue
- the boolean valuejava.io.IOException
- if an I/O error occurspublic void writeLong(long longValue) throws java.io.IOException
longValue
- the integer valuejava.io.IOException
- if an I/O error occurspublic void writeFloat(float floatValue) throws java.io.IOException
floatValue
- the floating point valuejava.io.IOException
- if an I/O error occurspublic void writeDouble(double doubleValue) throws java.io.IOException
doubleValue
- the floating point valuejava.io.IOException
- if an I/O error occurspublic void writeFixedLengthOpaqueData(byte[] bytes) throws java.io.IOException
bytes
- the byte arrayjava.io.IOException
- if an I/O error occurspublic void writeVariableLengthOpaqueData(byte[] bytes) throws java.io.IOException
bytes
- the byte arrayjava.io.IOException
- if an I/O error occurspublic void writeString(java.lang.String stringValue) throws java.io.UnsupportedEncodingException, java.io.IOException
stringValue
- the stringjava.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 void writeShortArray(short[] shortArray) throws java.io.IOException
shortArray
- the arraypublic void writeIntegerArray(int[] intArray) throws java.io.IOException
intArray
- the arraypublic void writeLongArray(long[] longArray) throws java.io.IOException
longArray
- the arraypublic void writeFloatArray(float[] floatArray) throws java.io.IOException
floatArray
- the arraypublic void writeDoubleArray(double[] doubleArray) throws java.io.IOException
doubleArray
- the array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |