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, readequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic DefaultPositionInputStream(InputStream in)
public int read()
throws IOException
read in interface IPositionInputStreamread in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface IPositionInputStreamread in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in interface IPositionInputStreamskip in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in interface IPositionInputStreammarkSupported in class FilterInputStreampublic void mark(int readLimit)
mark in interface IPositionInputStreammark in class FilterInputStreampublic void reset()
reset in interface IPositionInputStreamreset in class FilterInputStreampublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in interface IPositionInputStreamIOExceptionpublic int skipBytes(long n)
throws IOException
skipBytes in interface IPositionInputStreamIOExceptionpublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputreadFully in interface IPositionInputStreamIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in interface IPositionInputStreamIOExceptionpublic long position()
position in interface IPositionInputStreampublic void seek(long pos)
throws IOException
seek in interface IPositionInputStreamIOExceptionpublic void seek(int pos)
throws IOException
IOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in interface IPositionInputStreamIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputreadInt in interface IPositionInputStreamIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputreadLong in interface IPositionInputStreamIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in interface IPositionInputStreamIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputreadByte in interface IPositionInputStreamIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputreadChar in interface IPositionInputStreamIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in interface IPositionInputStreamIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in interface IPositionInputStreamIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputreadLine in interface IPositionInputStreamIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputreadShort in interface IPositionInputStreamIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputreadUTF in interface IPositionInputStreamIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in interface IPositionInputStreamIOExceptionpublic static int readInt(byte[] b,
int offset)
throws IOException
IOExceptionpublic static long readLong(byte[] b,
int offset)
public long readUnsignedInt()
throws IOException
readUnsignedInt in interface IPositionInputStreamIOExceptionpublic long readID(int idSize)
throws IOException
readID in interface IPositionInputStreamIOException