public class RandomAccessInputStream
extends InputStream
InputStream
to be seekable by caching its data
in a temporary RandomAccessFile
.Constructor and Description |
---|
RandomAccessInputStream(InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes,
int offset,
int length) |
protected long |
readUntil(long position) |
void |
reset() |
void |
seek(long position) |
public RandomAccessInputStream(InputStream inputStream) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int offset, int length) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public void seek(long position) throws IOException
IOException
protected void finalize() throws Throwable
finalize
in class Object
Throwable
protected long readUntil(long position) throws IOException
IOException