com.etymon.pjx
Interface PdfInput

All Known Implementing Classes:
PdfInputBuffer, PdfInputFile

public interface PdfInput

Specifies methods used by PdfReader to read portions of a PDF document. A class that implements this interface should represent one PDF document per instance of the class.


Method Summary
 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.
 

Method Detail

getName

java.lang.String getName()
Returns a name string associated of the PDF document.

Returns:
the name of the PDF document.

getLength

long getLength()
Returns the length of the PDF document.

Returns:
the length (in bytes) of the PDF document.

readBytes

java.nio.ByteBuffer readBytes(long start,
                              long end)
                              throws java.io.IOException
Returns a specified portion of a PDF document as a ByteBuffer.

Parameters:
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.)
Returns:
the requested portion of the PDF document.
Throws:
java.io.IOException

readChars

java.nio.CharBuffer readChars(long start,
                              long end)
                              throws java.io.IOException
Returns a specified portion of a PDF document as a CharBuffer.

Parameters:
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.)
Returns:
the requested portion of the PDF document.
Throws:
java.io.IOException