public static final class DataIO.DataInputByteArray extends Object implements DataInput, DataIO.DataInputInternal
byte[]| Constructor and Description |
|---|
DataIO.DataInputByteArray(byte[] b) |
DataIO.DataInputByteArray(byte[] bb,
int pos) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPos() |
byte[] |
internalByteArray() |
ByteBuffer |
internalByteBuffer() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
setPos(int pos) |
int |
skipBytes(int n) |
int |
unpackInt() |
void |
unpackIntArray(int[] array,
int start,
int end) |
long |
unpackLong() |
void |
unpackLongArray(long[] array,
int start,
int end) |
long[] |
unpackLongArrayDeltaCompression(int size) |
public DataIO.DataInputByteArray(byte[] b)
public DataIO.DataInputByteArray(byte[] bb,
int pos)
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 String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic int getPos()
getPos in interface DataIO.DataInputInternalpublic void setPos(int pos)
setPos in interface DataIO.DataInputInternalpublic byte[] internalByteArray()
internalByteArray in interface DataIO.DataInputInternalbyte[] or null if it does not existpublic ByteBuffer internalByteBuffer()
internalByteBuffer in interface DataIO.DataInputInternalByteBuffer or null if it does not existpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface DataIO.DataInputInternalpublic long unpackLong()
throws IOException
unpackLong in interface DataIO.DataInputInternalIOExceptionpublic int unpackInt()
throws IOException
unpackInt in interface DataIO.DataInputInternalIOExceptionpublic long[] unpackLongArrayDeltaCompression(int size)
throws IOException
unpackLongArrayDeltaCompression in interface DataIO.DataInputInternalIOExceptionpublic void unpackLongArray(long[] array,
int start,
int end)
unpackLongArray in interface DataIO.DataInputInternalpublic void unpackIntArray(int[] array,
int start,
int end)
unpackIntArray in interface DataIO.DataInputInternalCopyright © 2015. All Rights Reserved.