public class DefaultPositionInputStream extends FilterInputStream implements DataInput, IPositionInputStream
Constructor and Description |
---|
DefaultPositionInputStream(InputStream in) |
Modifier and Type | Method and Description |
---|---|
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() |
static int |
readInt(byte[] b,
int offset) |
String |
readLine() |
long |
readLong() |
static long |
readLong(byte[] b,
int offset) |
short |
readShort() |
int |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
void |
seek(int pos) |
void |
seek(long pos) |
long |
skip(long n) |
int |
skipBytes(int n) |
int |
skipBytes(long n) |
available, close, read
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public DefaultPositionInputStream(InputStream in)
public int read() throws IOException
read
in interface IPositionInputStream
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface IPositionInputStream
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in interface IPositionInputStream
skip
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in interface IPositionInputStream
markSupported
in class FilterInputStream
public void mark(int readLimit)
mark
in interface IPositionInputStream
mark
in class FilterInputStream
public void reset()
reset
in interface IPositionInputStream
reset
in class FilterInputStream
public int skipBytes(int n) throws IOException
skipBytes
in interface DataInput
skipBytes
in interface IPositionInputStream
IOException
public int skipBytes(long n) throws IOException
skipBytes
in interface IPositionInputStream
IOException
public void readFully(byte[] b) throws IOException
readFully
in interface DataInput
readFully
in interface IPositionInputStream
IOException
public void readFully(byte[] b, int off, int len) throws IOException
readFully
in interface DataInput
readFully
in interface IPositionInputStream
IOException
public long position()
position
in interface IPositionInputStream
public void seek(long pos) throws IOException
seek
in interface IPositionInputStream
IOException
public void seek(int pos) throws IOException
IOException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in interface IPositionInputStream
IOException
public int readInt() throws IOException
readInt
in interface DataInput
readInt
in interface IPositionInputStream
IOException
public long readLong() throws IOException
readLong
in interface DataInput
readLong
in interface IPositionInputStream
IOException
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 String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in interface IPositionInputStream
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in interface IPositionInputStream
IOException
public static int readInt(byte[] b, int offset) throws IOException
IOException
public static long readLong(byte[] b, int offset)
public long readUnsignedInt() throws IOException
readUnsignedInt
in interface IPositionInputStream
IOException
public long readID(int idSize) throws IOException
readID
in interface IPositionInputStream
IOException