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, readUTF
public void readFully(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
java.io.IOException
public boolean readBoolean() throws java.io.IOException
java.io.IOException
public byte readByte() throws java.io.IOException
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
java.io.IOException
public short readShort() throws java.io.IOException
java.io.IOException
public char readChar() throws java.io.IOException
java.io.IOException
public int readInt() throws java.io.IOException
java.io.IOException
public long readLong() throws java.io.IOException
java.io.IOException
public long[] unpackLongArrayDeltaCompression(int size) throws java.io.IOException
unpackLongArrayDeltaCompression
in class DataInput2
java.io.IOException
public void unpackLongArray(long[] array, int start, int end) throws java.io.IOException
unpackLongArray
in class DataInput2
java.io.IOException
public void unpackIntArray(int[] array, int start, int end) throws java.io.IOException
unpackIntArray
in class DataInput2
java.io.IOException
public void unpackLongSkip(int count) throws java.io.IOException
unpackLongSkip
in class DataInput2
java.io.IOException
public int getPos()
getPos
in class DataInput2
public void setPos(int pos)
setPos
in class DataInput2
public byte[] internalByteArray()
internalByteArray
in class DataInput2
byte[]
or null if it does not existpublic java.nio.ByteBuffer internalByteBuffer()
internalByteBuffer
in class DataInput2
ByteBuffer
or null if it does not existpublic void close()
close
in class DataInput2
public long unpackLong() throws java.io.IOException
unpackLong
in class DataInput2
java.io.IOException
public int unpackInt() throws java.io.IOException
unpackInt
in class DataInput2
java.io.IOException
Copyright © 2018. All Rights Reserved.