public static final class DataInput2.Stream extends DataInput2
DataInput2.ByteArray, DataInput2.ByteBuffer, DataInput2.DataInputToStream, DataInput2.Stream| Constructor and Description |
|---|
Stream(java.io.InputStream ins) |
| 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 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 long[] unpackLongArrayDeltaCompression(int size)
throws java.io.IOException
unpackLongArrayDeltaCompression in class DataInput2java.io.IOExceptionpublic void unpackLongArray(long[] array,
int start,
int end)
throws java.io.IOException
unpackLongArray in class DataInput2java.io.IOExceptionpublic void unpackIntArray(int[] array,
int start,
int end)
throws java.io.IOException
unpackIntArray in class DataInput2java.io.IOExceptionpublic void unpackLongSkip(int count)
throws java.io.IOException
unpackLongSkip in class DataInput2java.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 int unpackInt()
throws java.io.IOException
unpackInt in class DataInput2java.io.IOExceptionCopyright © 2018. All Rights Reserved.