public class GridUnsafeDataInput extends InputStream implements GridDataInput
Unsafe operations.| Constructor and Description |
|---|
GridUnsafeDataInput() |
| Modifier and Type | Method and Description |
|---|---|
void |
bytes(byte[] bytes,
int len) |
void |
bytes(byte[] bytes,
int off,
int len) |
void |
inputStream(InputStream in) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
boolean[] |
readBooleanArray()
Reads array of
booleans. |
byte |
readByte() |
byte[] |
readByteArray()
Reads array of
bytes. |
char |
readChar() |
char[] |
readCharArray()
Reads array of
chars. |
double |
readDouble() |
double[] |
readDoubleArray()
Reads array of
doubles. |
float |
readFloat() |
float[] |
readFloatArray()
Reads array of
floats. |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
int[] |
readIntArray()
Reads array of
ints. |
String |
readLine() |
long |
readLong() |
long[] |
readLongArray()
Reads array of
longs. |
short |
readShort() |
short[] |
readShortArray()
Reads array of
shorts. |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset()
Resets data output.
|
int |
skipBytes(int n) |
String |
toString() |
available, close, mark, markSupported, read, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadpublic void bytes(byte[] bytes,
int len)
bytes in interface GridDataInputbytes - Bytes.len - Length.public void bytes(byte[] bytes,
int off,
int len)
bytes - Bytes.off - Offset.len - Length.public void inputStream(InputStream in) throws IOException
inputStream in interface GridDataInputin - Underlying input stream.IOException - In case of error.public void reset()
throws IOException
reset in interface GridDataInputreset in class InputStreamIOException - In case of error.public byte[] readByteArray()
throws IOException
bytes.readByteArray in interface GridDataInputIOException - In case of error.public short[] readShortArray()
throws IOException
shorts.readShortArray in interface GridDataInputIOException - In case of error.public int[] readIntArray()
throws IOException
ints.readIntArray in interface GridDataInputIOException - In case of error.public double[] readDoubleArray()
throws IOException
doubles.readDoubleArray in interface GridDataInputIOException - In case of error.public boolean[] readBooleanArray()
throws IOException
booleans.readBooleanArray in interface GridDataInputIOException - In case of error.public char[] readCharArray()
throws IOException
chars.readCharArray in interface GridDataInputIOException - In case of error.public long[] readLongArray()
throws IOException
longs.readLongArray in interface GridDataInputIOException - In case of error.public float[] readFloatArray()
throws IOException
floats.readFloatArray in interface GridDataInputIOException - In case of error.public void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic int read()
throws IOException
read in interface GridDataInputread in class InputStream-1 if the end of the stream is reached.IOException - In case of error.public int read(byte[] b,
int off,
int len)
throws IOException
read in interface GridDataInputread in class InputStreamb - Buffer into which the data is read.off - Start offset.len - Maximum number of bytes to read.-1 is there is no
more data because the end of the stream has been reached.IOException - In case of error.public String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOException
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016