public class XDROutputStream extends FilterOutputStream implements XDRDataOutput
Modifier and Type | Field and Description |
---|---|
private static int |
UNIT_SIZE |
out
Constructor and Description |
---|
XDROutputStream(OutputStream out)
Construct a new
XDROutputStream that wraps the given
stream. |
Modifier and Type | Method and Description |
---|---|
void |
writeBoolean(boolean value)
Write a boolean value.
|
void |
writeBooleanArray(boolean[] array)
Write a variable-length array of boolean values.
|
void |
writeBooleanArray(boolean[] array,
int offset,
int length)
Write a variable-length array of booleanvalues.
|
void |
writeBooleanVector(boolean[] array)
Write a fixed-length array of boolean values.
|
void |
writeBooleanVector(boolean[] array,
int offset,
int length)
Write a fixed-length array of boolean values.
|
void |
writeByteArray(byte[] array)
Write a variable-length array of bytes.
|
void |
writeByteArray(byte[] array,
int offset,
int length)
Write a variable-length array of bytes.
|
void |
writeByteVector(byte[] array)
Write a fixed-length array of bytes.
|
void |
writeByteVector(byte[] array,
int offset,
int length)
Write a fixed-length array of bytes.
|
void |
writeChar(char value)
Write a character (8-bit integer) value.
|
void |
writeDouble(double value)
Write a double value.
|
void |
writeDoubleArray(double[] array)
Write a variable-length array of double values.
|
void |
writeDoubleArray(double[] array,
int offset,
int length)
Write a variable-length array of double values.
|
void |
writeDoubleVector(double[] array)
Write a fixed-length array of double values.
|
void |
writeDoubleVector(double[] array,
int offset,
int length)
Write a fixed-length array of double values.
|
void |
writeFloat(float value)
Write a float value.
|
void |
writeFloatArray(float[] array)
Write a variable-length array of float values.
|
void |
writeFloatArray(float[] array,
int offset,
int length)
Write a variable-length array of float values.
|
void |
writeFloatVector(float[] array)
Write a fixed-length array of double values.
|
void |
writeFloatVector(float[] array,
int offset,
int length)
Write a fixed-length array of double values.
|
void |
writeInt(int value)
Write an int (32-bit integer) value.
|
void |
writeIntArray(int[] array)
Write a variable-length array of int values (32-bit integers).
|
void |
writeIntArray(int[] array,
int offset,
int length)
Write a variable-length array of int values (32-bit integers).
|
void |
writeIntVector(int[] array)
Write a fixed-length array of int values (32-bit integers).
|
void |
writeIntVector(int[] array,
int offset,
int length)
Write a fixed-length array of int values (32-bit integers).
|
void |
writeLong(long value)
Write a long (64-bit integer) value.
|
void |
writeLongArray(long[] array)
Write a variable-length array of long values (64-bit integers).
|
void |
writeLongArray(long[] array,
int offset,
int length)
Write a variable-length array of long values (64-bit integers).
|
void |
writeLongVector(long[] array)
Write a fixed-length array of long values (64-bit integers).
|
void |
writeLongVector(long[] array,
int offset,
int length)
Write a fixed-length array of long values (64-bit integers).
|
void |
writeShort(short value)
Write a short (16-bit integer) value.
|
void |
writeShortArray(short[] array)
Write a variable-length array of short values (16-bit integers).
|
void |
writeShortArray(short[] array,
int offset,
int length)
Write a variable-length array of short values (16-bit integers).
|
void |
writeShortVector(short[] array)
Write a fixed-length array of short values (16-bit integers).
|
void |
writeShortVector(short[] array,
int offset,
int length)
Write a fixed-length array of short values (16-bit integers).
|
void |
writeString(String string)
Write a fixed-length string.
|
void |
writeUnsignedInt(long value)
Write an unsigned integer value (represented by a 64-bit signed Java
long
|
void |
writeUnsignedIntArray(long[] array)
Write a variable-length array of unsigned int values (32-bit
unsigned integers, represented as Java long values).
|
void |
writeUnsignedIntArray(long[] array,
int offset,
int length)
Write a variable-length array of unsigned int values (32-bit
unsigned integers, represented as Java long values).
|
void |
writeUnsignedIntVector(long[] array)
Write a fixed-length array of unsigned int values (32-bit
unsigned integers, represented as Java long values).
|
void |
writeUnsignedIntVector(long[] array,
int offset,
int length)
Write a fixed-length array of unsigned int values (32-bit
unsigned integers, represented as Java long values).
|
void |
writeUnsignedShort(int value)
Write an unsigned short (unsigned 16-bit integer value, represented by
a Java init.
|
void |
writeUnsignedShortArray(int[] array)
Write a variable-length array of unsigned short values
(16-bit unsigned integers, represented by 32-bit signed Java
ints).
|
void |
writeUnsignedShortArray(int[] array,
int offset,
int length)
Write a variable-length array of unsigned short values
(16-bit unsigned integers, represented by 32-bit signed Java
ints).
|
void |
writeUnsignedShortVector(int[] array)
Write a fixed-length array of unsigned short values
(16-bit unsigned integers, represented by 32-bit signed Java
ints).
|
void |
writeUnsignedShortVector(int[] array,
int offset,
int length)
Write a fixed-length array of unsigned short values
(16-bit unsigned integers, represented by 32-bit signed Java
ints).
|
private static final int UNIT_SIZE
public XDROutputStream(OutputStream out)
XDROutputStream
that wraps the given
stream.out
- The OutputStream
to wrap.public void writeBoolean(boolean value) throws IOException
XDRDataOutput
writeBoolean
in interface XDRDataOutput
IOException
public void writeChar(char value) throws IOException
XDRDataOutput
writeChar
in interface XDRDataOutput
IOException
public void writeShort(short value) throws IOException
XDRDataOutput
writeShort
in interface XDRDataOutput
IOException
public void writeUnsignedShort(int value) throws IOException
XDRDataOutput
writeUnsignedShort
in interface XDRDataOutput
IOException
public void writeInt(int value) throws IOException
XDRDataOutput
writeInt
in interface XDRDataOutput
IOException
public void writeUnsignedInt(long value) throws IOException
XDRDataOutput
writeUnsignedInt
in interface XDRDataOutput
IOException
public void writeLong(long value) throws IOException
XDRDataOutput
writeLong
in interface XDRDataOutput
IOException
public void writeFloat(float value) throws IOException
XDRDataOutput
writeFloat
in interface XDRDataOutput
IOException
public void writeDouble(double value) throws IOException
XDRDataOutput
writeDouble
in interface XDRDataOutput
IOException
public void writeString(String string) throws IOException
XDRDataOutput
writeString
in interface XDRDataOutput
IOException
public void writeBooleanArray(boolean[] array) throws IOException
XDRDataOutput
writeBooleanArray
in interface XDRDataOutput
IOException
public void writeBooleanArray(boolean[] array, int offset, int length) throws IOException
XDRDataOutput
writeBooleanArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeBooleanVector(boolean[] array) throws IOException
XDRDataOutput
writeBooleanVector
in interface XDRDataOutput
IOException
public void writeBooleanVector(boolean[] array, int offset, int length) throws IOException
XDRDataOutput
writeBooleanVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeByteArray(byte[] array) throws IOException
XDRDataOutput
writeByteArray
in interface XDRDataOutput
IOException
public void writeByteArray(byte[] array, int offset, int length) throws IOException
XDRDataOutput
writeByteArray
in interface XDRDataOutput
array
- The array of bytes.offset
- The index of the first bytes to write.length
- The number of bytes to write.IOException
public void writeByteVector(byte[] array) throws IOException
XDRDataOutput
writeByteVector
in interface XDRDataOutput
IOException
public void writeByteVector(byte[] array, int offset, int length) throws IOException
XDRDataOutput
writeByteVector
in interface XDRDataOutput
array
- The array of bytes.offset
- The index of the first bytes to write.length
- The number of bytes to write.IOException
public void writeShortArray(short[] array) throws IOException
XDRDataOutput
writeShortArray
in interface XDRDataOutput
IOException
public void writeShortArray(short[] array, int offset, int length) throws IOException
XDRDataOutput
writeShortArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeShortVector(short[] array) throws IOException
XDRDataOutput
writeShortVector
in interface XDRDataOutput
IOException
public void writeShortVector(short[] array, int offset, int length) throws IOException
XDRDataOutput
writeShortVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeUnsignedShortArray(int[] array) throws IOException
XDRDataOutput
writeUnsignedShortArray
in interface XDRDataOutput
IOException
public void writeUnsignedShortArray(int[] array, int offset, int length) throws IOException
XDRDataOutput
writeUnsignedShortArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeUnsignedShortVector(int[] array) throws IOException
XDRDataOutput
writeUnsignedShortVector
in interface XDRDataOutput
IOException
public void writeUnsignedShortVector(int[] array, int offset, int length) throws IOException
XDRDataOutput
writeUnsignedShortVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeIntArray(int[] array) throws IOException
XDRDataOutput
writeIntArray
in interface XDRDataOutput
IOException
public void writeIntArray(int[] array, int offset, int length) throws IOException
XDRDataOutput
writeIntArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeIntVector(int[] array) throws IOException
XDRDataOutput
writeIntVector
in interface XDRDataOutput
IOException
public void writeIntVector(int[] array, int offset, int length) throws IOException
XDRDataOutput
writeIntVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeUnsignedIntArray(long[] array) throws IOException
XDRDataOutput
writeUnsignedIntArray
in interface XDRDataOutput
IOException
public void writeUnsignedIntArray(long[] array, int offset, int length) throws IOException
XDRDataOutput
writeUnsignedIntArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeUnsignedIntVector(long[] array) throws IOException
XDRDataOutput
writeUnsignedIntVector
in interface XDRDataOutput
IOException
public void writeUnsignedIntVector(long[] array, int offset, int length) throws IOException
XDRDataOutput
writeUnsignedIntVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeLongArray(long[] array) throws IOException
XDRDataOutput
writeLongArray
in interface XDRDataOutput
IOException
public void writeLongArray(long[] array, int offset, int length) throws IOException
XDRDataOutput
writeLongArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeLongVector(long[] array) throws IOException
XDRDataOutput
writeLongVector
in interface XDRDataOutput
IOException
public void writeLongVector(long[] array, int offset, int length) throws IOException
XDRDataOutput
writeLongVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeFloatArray(float[] array) throws IOException
XDRDataOutput
writeFloatArray
in interface XDRDataOutput
IOException
public void writeFloatArray(float[] array, int offset, int length) throws IOException
XDRDataOutput
writeFloatArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeFloatVector(float[] array) throws IOException
XDRDataOutput
writeFloatVector
in interface XDRDataOutput
IOException
public void writeFloatVector(float[] array, int offset, int length) throws IOException
XDRDataOutput
writeFloatVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeDoubleArray(double[] array) throws IOException
XDRDataOutput
writeDoubleArray
in interface XDRDataOutput
IOException
public void writeDoubleArray(double[] array, int offset, int length) throws IOException
XDRDataOutput
writeDoubleArray
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
public void writeDoubleVector(double[] array) throws IOException
XDRDataOutput
writeDoubleVector
in interface XDRDataOutput
IOException
public void writeDoubleVector(double[] array, int offset, int length) throws IOException
XDRDataOutput
writeDoubleVector
in interface XDRDataOutput
array
- The array of values.offset
- The index of the first element to write.length
- The number of elements to write.IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses