|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RandomAccessRead
An interface allowing random access read operations.
| Method Summary | |
|---|---|
long |
getPosition()
Returns offset of next byte to be returned by a read method. |
long |
length()
The total number of bytes that are available. |
void |
seek(long position)
Seek to a position in the data. |
| Methods inherited from interface org.apache.pdfbox.io.SequentialRead |
|---|
close, read, read |
| Method Detail |
|---|
long getPosition()
throws IOException
SequentialRead.read()
(if no more bytes are left it returns a value >= length of source)
IOException
void seek(long position)
throws IOException
position - The position to seek to.
IOException - If there is an error while seeking.
long length()
throws IOException
IOException - If there is an IO error while determining the
length of the data stream.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||