public class RandomAccessFileStream extends AbstractBufferingStream
atEof, buffer, bufferCursor, bufferRemaining, closed, DEFAULT_READ_SIZE, offset| Constructor and Description |
|---|
RandomAccessFileStream(java.io.File file) |
RandomAccessFileStream(java.io.File file,
long offset) |
RandomAccessFileStream(java.io.File file,
long offset,
int readSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
doClose() |
int |
doRead(byte[] b,
int off,
int len) |
void |
doSeek(long offset) |
java.io.File |
getFile() |
public RandomAccessFileStream(java.io.File file)
throws java.lang.IndexOutOfBoundsException,
java.io.FileNotFoundException,
java.io.IOException
java.lang.IndexOutOfBoundsExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic RandomAccessFileStream(java.io.File file,
long offset)
throws java.lang.IndexOutOfBoundsException,
java.io.FileNotFoundException,
java.io.IOException
java.lang.IndexOutOfBoundsExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic RandomAccessFileStream(java.io.File file,
long offset,
int readSize)
throws java.lang.IndexOutOfBoundsException,
java.io.FileNotFoundException,
java.io.IOException
java.lang.IndexOutOfBoundsExceptionjava.io.FileNotFoundExceptionjava.io.IOExceptionpublic java.io.File getFile()
public void doClose()
throws java.io.IOException
doClose in class AbstractBufferingStreamjava.io.IOExceptionpublic int doRead(byte[] b,
int off,
int len)
throws java.io.IOException
doRead in class AbstractBufferingStreamjava.io.IOExceptionpublic void doSeek(long offset)
throws java.io.IOException
doSeek in class AbstractBufferingStreamjava.io.IOExceptionCopyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.