public interface PdfInput
PdfReader
to read
portions of a PDF document. A class that implements this interface
should represent one PDF document per instance of the class.Modifier and Type | Method and Description |
---|---|
long |
getLength()
Returns the length of the PDF document.
|
java.lang.String |
getName()
Returns a name string associated of the PDF document.
|
java.nio.ByteBuffer |
readBytes(long start,
long end)
Returns a specified portion of a PDF document as a
ByteBuffer . |
java.nio.CharBuffer |
readChars(long start,
long end)
Returns a specified portion of a PDF document as a
CharBuffer . |
java.lang.String getName()
long getLength()
java.nio.ByteBuffer readBytes(long start, long end) throws java.io.IOException
ByteBuffer
.start
- the offset position of the first byte to read.end
- the offset position at which to stop reading.
(The byte at this offset is not included.)java.io.IOException
java.nio.CharBuffer readChars(long start, long end) throws java.io.IOException
CharBuffer
.start
- the offset position of the first byte to read.end
- the offset position at which to stop reading.
(The byte at this offset is not included.)java.io.IOException