|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.pdfbox.io.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()
public void close()
public int read() throws IOException
IOException
public int read(byte[] b, int offset, int length) throws IOException
IOException
public long skip(long amountToSkip)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |