Interface GridDataOutput
-
- All Superinterfaces:
DataOutput
- All Known Implementing Classes:
GridUnsafeDataOutput
public interface GridDataOutput extends DataOutput
Extended data output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]array()byte[]internalArray()intoffset()voidoffset(int off)voidoutputStream(OutputStream out)voidreset()Resets data output.voidwriteBooleanArray(boolean[] arr)Writes array ofbooleans.voidwriteByteArray(byte[] arr)Writes array ofbytes.voidwriteCharArray(char[] arr)Writes array ofchars.voidwriteDoubleArray(double[] arr)Writes array ofdoubles.voidwriteFloatArray(float[] arr)Writes array offloats.voidwriteIntArray(int[] arr)Writes array ofints.voidwriteLongArray(long[] arr)Writes array oflongs.voidwriteShortArray(short[] arr)Writes array ofshorts.-
Methods inherited from interface java.io.DataOutput
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
-
-
Method Detail
-
outputStream
void outputStream(OutputStream out)
- Parameters:
out- Underlying stream.
-
array
byte[] array()
- Returns:
- Copy of internal array shrunk to offset.
-
internalArray
byte[] internalArray()
- Returns:
- Internal array.
-
offset
int offset()
- Returns:
- Offset.
-
offset
void offset(int off)
- Parameters:
off- Offset.
-
reset
void reset()
Resets data output.
-
writeByteArray
void writeByteArray(byte[] arr) throws IOExceptionWrites array ofbytes.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeShortArray
void writeShortArray(short[] arr) throws IOExceptionWrites array ofshorts.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeIntArray
void writeIntArray(int[] arr) throws IOExceptionWrites array ofints.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeLongArray
void writeLongArray(long[] arr) throws IOExceptionWrites array oflongs.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeFloatArray
void writeFloatArray(float[] arr) throws IOExceptionWrites array offloats.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeDoubleArray
void writeDoubleArray(double[] arr) throws IOExceptionWrites array ofdoubles.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeBooleanArray
void writeBooleanArray(boolean[] arr) throws IOExceptionWrites array ofbooleans.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
writeCharArray
void writeCharArray(char[] arr) throws IOExceptionWrites array ofchars.- Parameters:
arr- Array.- Throws:
IOException- In case of error.
-
-