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
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void seek(long position)
throws IOException
IOExceptionprotected void finalize()
throws Throwable
finalize in class ObjectThrowableprotected long readUntil(long position)
throws IOException
IOException