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) |
public RandomAccessInputStream(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readLimit)
mark in class java.io.InputStreampublic boolean markSupported()
markSupported in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic void seek(long position)
throws java.io.IOException
java.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwableprotected long readUntil(long position)
throws java.io.IOException
java.io.IOException