Class RandomAccessFileStream
java.lang.Object
org.archive.streamcontext.AbstractBufferingStream
org.archive.streamcontext.RandomAccessFileStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Stream
-
Field Summary
Fields inherited from class org.archive.streamcontext.AbstractBufferingStream
atEof, buffer, bufferCursor, bufferRemaining, closed, DEFAULT_READ_SIZE, offset -
Constructor Summary
ConstructorsConstructorDescriptionRandomAccessFileStream(File file) RandomAccessFileStream(File file, long offset) RandomAccessFileStream(File file, long offset, int readSize) -
Method Summary
-
Constructor Details
-
RandomAccessFileStream
public RandomAccessFileStream(File file) throws IndexOutOfBoundsException, FileNotFoundException, IOException -
RandomAccessFileStream
public RandomAccessFileStream(File file, long offset) throws IndexOutOfBoundsException, FileNotFoundException, IOException -
RandomAccessFileStream
public RandomAccessFileStream(File file, long offset, int readSize) throws IndexOutOfBoundsException, FileNotFoundException, IOException
-
-
Method Details
-
getFile
-
doClose
- Specified by:
doClosein classAbstractBufferingStream- Throws:
IOException
-
doRead
- Specified by:
doReadin classAbstractBufferingStream- Throws:
IOException
-
doSeek
- Specified by:
doSeekin classAbstractBufferingStream- Throws:
IOException
-