public class RandomAccessReadInputStream extends InputStream
| Constructor and Description |
|---|
RandomAccessReadInputStream(RandomAccessRead randomAccessRead,
long startPosition,
long length)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int offset,
int length) |
long |
skip(long amountToSkip) |
mark, markSupported, read, resetpublic RandomAccessReadInputStream(RandomAccessRead randomAccessRead, long startPosition, long length)
randomAccessRead - The file to read the data from.startPosition - The position in the file that this stream starts.length - The length of the input stream.public int available()
available in class InputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long amountToSkip)
skip in class InputStreamCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.