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