public class PositionInputStream extends FilterInputStream implements DataInput
| Constructor and Description |
|---|
PositionInputStream(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) |
int |
readInt() |
int |
readIntArray(int[] a) |
String |
readLine() |
long |
readLong() |
int |
readLongArray(long[] a) |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
reset() |
void |
seek(long pos) |
long |
skip(long n) |
int |
skipBytes(int n) |
int |
skipBytes(long n) |
available, close, readpublic PositionInputStream(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void mark(int readLimit)
mark in class FilterInputStreampublic void reset()
reset in class FilterInputStreampublic final int skipBytes(int n)
throws IOException
skipBytes in interface DataInputIOExceptionpublic final int skipBytes(long n)
throws IOException
IOExceptionpublic final void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptionpublic final void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptionpublic long position()
public void seek(long pos)
throws IOException
IOExceptionpublic final int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic final int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic final long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic int readIntArray(int[] a)
throws IOException
IOExceptionpublic int readLongArray(long[] a)
throws IOException
IOException