Interface GridDataInput
-
- All Superinterfaces:
DataInput
- All Known Implementing Classes:
GridUnsafeDataInput
public interface GridDataInput extends DataInput
Extended data input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbytes(byte[] bytes, int len)voidinputStream(InputStream in)intread()intread(byte[] b)intread(byte[] b, int off, int len)boolean[]readBooleanArray()Reads array ofbooleans.byte[]readByteArray()Reads array ofbytes.char[]readCharArray()Reads array ofchars.double[]readDoubleArray()Reads array ofdoubles.float[]readFloatArray()Reads array offloats.int[]readIntArray()Reads array ofints.long[]readLongArray()Reads array oflongs.short[]readShortArray()Reads array ofshorts.voidreset()Resets data output.-
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
-
-
-
-
Method Detail
-
bytes
void bytes(byte[] bytes, int len)- Parameters:
bytes- Bytes.len- Length.
-
inputStream
void inputStream(InputStream in) throws IOException
- Parameters:
in- Underlying input stream.- Throws:
IOException- In case of error.
-
reset
void reset() throws IOExceptionResets data output.- Throws:
IOException- In case of error.
-
read
int read() throws IOException
- Returns:
- The next byte of data, or
-1if the end of the stream is reached. - Throws:
IOException- In case of error.
-
read
int read(byte[] b) throws IOException
- Parameters:
b- Buffer into which the data is read.- Returns:
- Total number of bytes read into the buffer, or
-1is there is no more data because the end of the stream has been reached. - Throws:
IOException- In case of error.
-
read
int read(byte[] b, int off, int len) throws IOException- Parameters:
b- Buffer into which the data is read.off- Start offset.len- Maximum number of bytes to read.- Returns:
- Total number of bytes read into the buffer, or
-1is there is no more data because the end of the stream has been reached. - Throws:
IOException- In case of error.
-
readByteArray
byte[] readByteArray() throws IOExceptionReads array ofbytes.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readShortArray
short[] readShortArray() throws IOExceptionReads array ofshorts.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readIntArray
int[] readIntArray() throws IOExceptionReads array ofints.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readLongArray
long[] readLongArray() throws IOExceptionReads array oflongs.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readFloatArray
float[] readFloatArray() throws IOExceptionReads array offloats.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readDoubleArray
double[] readDoubleArray() throws IOExceptionReads array ofdoubles.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readBooleanArray
boolean[] readBooleanArray() throws IOExceptionReads array ofbooleans.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
readCharArray
char[] readCharArray() throws IOExceptionReads array ofchars.- Returns:
- Array.
- Throws:
IOException- In case of error.
-
-