| org.archive.io.SeekInputStream org.archive.io.RandomAccessInputStream
RandomAccessInputStream | public class RandomAccessInputStream extends SeekInputStream (Code) | | Wraps a RandomAccessFile with an InputStream interface.
author: gojomo |
RandomAccessInputStream | public RandomAccessInputStream(RandomAccessFile raf) throws IOException(Code) | | Constructor.
If using this constructor, caller created the RAF and therefore
its assumed wants to control close of the RAF. The RAF.close
is not called if this constructor is used on close of this stream.
Parameters: raf - RandomAccessFile to wrap. throws: IOException - |
RandomAccessInputStream | public RandomAccessInputStream(File file) throws IOException(Code) | | Constructor.
Parameters: file - File to get RAFIS on. Creates an RAF from passed file.Closes the created RAF when this stream is closed. throws: IOException - |
RandomAccessInputStream | public RandomAccessInputStream(File file, long offset) throws IOException(Code) | | Constructor.
Parameters: file - File to get RAFIS on. Creates an RAF from passed file.Closes the created RAF when this stream is closed. Parameters: offset - throws: IOException - |
RandomAccessInputStream | public RandomAccessInputStream(RandomAccessFile raf, boolean sympathyClose, long offset) throws IOException(Code) | | Parameters: raf - RandomAccessFile to wrap. Parameters: sympathyClose - Set to true if we are to close the RAFfile when this stream is closed. Parameters: offset - throws: IOException - |
mark | public synchronized void mark(int readlimit)(Code) | | |
markSupported | public boolean markSupported()(Code) | | |
|
|