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