|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.apache.pdfbox.io.RandomAccessFileInputStream
public class RandomAccessFileInputStream
This class allows a section of a RandomAccessFile to be accessed as an input stream.
| Constructor Summary | |
|---|---|
RandomAccessFileInputStream(RandomAccess raFile,
long startPosition,
long length)
Constructor. |
|
| Method Summary | |
|---|---|
int |
available()
|
void |
close()
|
int |
read()
|
int |
read(byte[] b,
int offset,
int length)
|
long |
skip(long amountToSkip)
|
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomAccessFileInputStream(RandomAccess raFile,
long startPosition,
long length)
raFile - The file to read the data from.startPosition - The position in the file that this stream starts.length - The length of the input stream.| Method Detail |
|---|
public int available()
available in class InputStreampublic void close()
close in interface Closeableclose in class InputStream
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long amountToSkip)
skip in class InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||