public class ByteArrayPositionInputStream extends Object implements IPositionInputStream, Closeable, AutoCloseable
Constructor and Description |
---|
ByteArrayPositionInputStream(byte[] bytes,
int idSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
mark(int readLimit) |
boolean |
markSupported() |
long |
position() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
long |
readID(int idSize) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
void |
seek(long pos) |
long |
skip(long n) |
int |
skipBytes(int n) |
int |
skipBytes(long n) |
public ByteArrayPositionInputStream(byte[] bytes, int idSize)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface IPositionInputStream
IOException
public int read()
read
in interface IPositionInputStream
public int read(byte[] b, int off, int len)
read
in interface IPositionInputStream
public long skip(long n)
skip
in interface IPositionInputStream
public boolean markSupported()
markSupported
in interface IPositionInputStream
public void mark(int readLimit)
mark
in interface IPositionInputStream
public void reset()
reset
in interface IPositionInputStream
public int skipBytes(long n)
skipBytes
in interface IPositionInputStream
public void readFully(byte[] b) throws EOFException
readFully
in interface DataInput
readFully
in interface IPositionInputStream
EOFException
public void readFully(byte[] b, int off, int len) throws EOFException
readFully
in interface DataInput
readFully
in interface IPositionInputStream
EOFException
public long position()
position
in interface IPositionInputStream
public int readUnsignedByte() throws EOFException
readUnsignedByte
in interface DataInput
readUnsignedByte
in interface IPositionInputStream
EOFException
public int readInt() throws EOFException
readInt
in interface DataInput
readInt
in interface IPositionInputStream
EOFException
public long readLong() throws EOFException
readLong
in interface DataInput
readLong
in interface IPositionInputStream
EOFException
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in interface IPositionInputStream
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
readByte
in interface IPositionInputStream
IOException
public char readChar() throws IOException
readChar
in interface DataInput
readChar
in interface IPositionInputStream
IOException
public double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in interface IPositionInputStream
IOException
public float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in interface IPositionInputStream
IOException
public String readLine() throws IOException
readLine
in interface DataInput
readLine
in interface IPositionInputStream
IOException
public short readShort() throws IOException
readShort
in interface DataInput
readShort
in interface IPositionInputStream
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in interface IPositionInputStream
IOException
public long readUnsignedInt() throws EOFException
readUnsignedInt
in interface IPositionInputStream
EOFException
public int skipBytes(int n)
skipBytes
in interface DataInput
skipBytes
in interface IPositionInputStream
public void seek(long pos) throws IOException
seek
in interface IPositionInputStream
IOException
public String readUTF()
readUTF
in interface DataInput
readUTF
in interface IPositionInputStream
public long readID(int idSize) throws IOException
readID
in interface IPositionInputStream
IOException