Class GridUnsafeDataInput
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.ignite.internal.util.io.GridUnsafeDataInput
-
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable,GridDataInput
public class GridUnsafeDataInput extends InputStream implements GridDataInput
Data input based onUnsafeoperations.
-
-
Constructor Summary
Constructors Constructor Description GridUnsafeDataInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbytes(byte[] bytes, int len)voidbytes(byte[] bytes, int off, int len)voidinputStream(InputStream in)intread()intread(byte[] b, int off, int len)booleanreadBoolean()boolean[]readBooleanArray()bytereadByte()byte[]readByteArray()charreadChar()char[]readCharArray()doublereadDouble()double[]readDoubleArray()floatreadFloat()float[]readFloatArray()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)intreadInt()int[]readIntArray()StringreadLine()longreadLong()long[]readLongArray()shortreadShort()short[]readShortArray()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()voidreset()intskipBytes(int n)StringtoString()-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, transferTo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.util.io.GridDataInput
read
-
-
-
-
Method Detail
-
bytes
public void bytes(byte[] bytes, int len)- Specified by:
bytesin interfaceGridDataInput
-
bytes
public void bytes(byte[] bytes, int off, int len)- Parameters:
bytes- Bytes.off- Offset.len- Length.
-
inputStream
public void inputStream(InputStream in) throws IOException
- Specified by:
inputStreamin interfaceGridDataInput- Throws:
IOException
-
reset
public void reset() throws IOException- Specified by:
resetin interfaceGridDataInput- Overrides:
resetin classInputStream- Throws:
IOException
-
readByteArray
public byte[] readByteArray() throws IOException- Specified by:
readByteArrayin interfaceGridDataInput- Throws:
IOException
-
readShortArray
public short[] readShortArray() throws IOException- Specified by:
readShortArrayin interfaceGridDataInput- Throws:
IOException
-
readIntArray
public int[] readIntArray() throws IOException- Specified by:
readIntArrayin interfaceGridDataInput- Throws:
IOException
-
readDoubleArray
public double[] readDoubleArray() throws IOException- Specified by:
readDoubleArrayin interfaceGridDataInput- Throws:
IOException
-
readBooleanArray
public boolean[] readBooleanArray() throws IOException- Specified by:
readBooleanArrayin interfaceGridDataInput- Throws:
IOException
-
readCharArray
public char[] readCharArray() throws IOException- Specified by:
readCharArrayin interfaceGridDataInput- Throws:
IOException
-
readLongArray
public long[] readLongArray() throws IOException- Specified by:
readLongArrayin interfaceGridDataInput- Throws:
IOException
-
readFloatArray
public float[] readFloatArray() throws IOException- Specified by:
readFloatArrayin interfaceGridDataInput- Throws:
IOException
-
readFully
public void readFully(byte[] b) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
skipBytes
public int skipBytes(int n) throws IOException- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readUnsignedByte
public int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readShort
public short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readChar
public char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readInt
public int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLong
public long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readFloat
public float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readDouble
public double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin interfaceGridDataInput- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceGridDataInput- Overrides:
readin classInputStream- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
-