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 Closeableclose in interface AutoCloseableclose in interface IPositionInputStreamIOExceptionpublic int read()
read in interface IPositionInputStreampublic int read(byte[] b,
int off,
int len)
read in interface IPositionInputStreampublic long skip(long n)
skip in interface IPositionInputStreampublic boolean markSupported()
markSupported in interface IPositionInputStreampublic void mark(int readLimit)
mark in interface IPositionInputStreampublic void reset()
reset in interface IPositionInputStreampublic int skipBytes(long n)
skipBytes in interface IPositionInputStreampublic void readFully(byte[] b)
throws EOFException
readFully in interface DataInputreadFully in interface IPositionInputStreamEOFExceptionpublic void readFully(byte[] b,
int off,
int len)
throws EOFException
readFully in interface DataInputreadFully in interface IPositionInputStreamEOFExceptionpublic long position()
position in interface IPositionInputStreampublic int readUnsignedByte()
throws EOFException
readUnsignedByte in interface DataInputreadUnsignedByte in interface IPositionInputStreamEOFExceptionpublic int readInt()
throws EOFException
readInt in interface DataInputreadInt in interface IPositionInputStreamEOFExceptionpublic long readLong()
throws EOFException
readLong in interface DataInputreadLong in interface IPositionInputStreamEOFExceptionpublic 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 int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in interface IPositionInputStreamIOExceptionpublic long readUnsignedInt()
throws EOFException
readUnsignedInt in interface IPositionInputStreamEOFExceptionpublic int skipBytes(int n)
skipBytes in interface DataInputskipBytes in interface IPositionInputStreampublic void seek(long pos)
throws IOException
seek in interface IPositionInputStreamIOExceptionpublic String readUTF()
readUTF in interface DataInputreadUTF in interface IPositionInputStreampublic long readID(int idSize)
throws IOException
readID in interface IPositionInputStreamIOException