public static final class DataInput2.ByteArray extends DataInput2
byte[]DataInput2.ByteArray, DataInput2.ByteBuffer, DataInput2.DataInputToStream, DataInput2.Stream| Constructor and Description |
|---|
ByteArray(byte[] b) |
ByteArray(byte[] bb,
int pos) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPos() |
byte[] |
internalByteArray() |
java.nio.ByteBuffer |
internalByteBuffer() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
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) |
void |
unpackLongSkip(int count) |
readDouble, readFloat, readFully, readLine, readUnsignedShort, readUTFpublic ByteArray(byte[] b)
public ByteArray(byte[] bb,
int pos)
public void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionpublic int skipBytes(int n)
throws java.io.IOException
java.io.IOExceptionpublic boolean readBoolean()
throws java.io.IOException
java.io.IOExceptionpublic byte readByte()
throws java.io.IOException
java.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
java.io.IOExceptionpublic short readShort()
throws java.io.IOException
java.io.IOExceptionpublic char readChar()
throws java.io.IOException
java.io.IOExceptionpublic int readInt()
throws java.io.IOException
java.io.IOExceptionpublic long readLong()
throws java.io.IOException
java.io.IOExceptionpublic int getPos()
getPos in class DataInput2public void setPos(int pos)
setPos in class DataInput2public byte[] internalByteArray()
internalByteArray in class DataInput2byte[] or null if it does not existpublic java.nio.ByteBuffer internalByteBuffer()
internalByteBuffer in class DataInput2ByteBuffer or null if it does not existpublic void close()
close in class DataInput2public long unpackLong()
throws java.io.IOException
unpackLong in class DataInput2java.io.IOExceptionpublic void unpackLongSkip(int count)
unpackLongSkip in class DataInput2public int unpackInt()
throws java.io.IOException
unpackInt in class DataInput2java.io.IOExceptionpublic long[] unpackLongArrayDeltaCompression(int size)
throws java.io.IOException
unpackLongArrayDeltaCompression in class DataInput2java.io.IOExceptionpublic void unpackLongArray(long[] array,
int start,
int end)
unpackLongArray in class DataInput2public void unpackIntArray(int[] array,
int start,
int end)
unpackIntArray in class DataInput2Copyright © 2018. All Rights Reserved.