Package com.ribs.pdf
Class PDFParser
java.lang.Object
com.ribs.pdf.PDFParser
- All Implemented Interfaces:
- PDFParserConstants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbooleanFields inherited from interface com.ribs.pdf.PDFParserConstantsARRAY_BEGIN, ARRAY_END, BOOLEAN_FALSE, BOOLEAN_TRUE, DEFAULT, DICT_BEGIN, DICT_END, DIGIT, EOF, EOF_MARKER, IN_STRING, IN_STRING_NEST, NULL_OBJECT, NUM_INTEGER, NUM_REAL, OBJECT_BEGIN, OBJECT_END, PDF_COMMENT, PDF_HEADER, PDF_HEX_STRING, PDF_NAME, PDF_STRING, SPECIAL_COMMENTS, START_XREF, STREAM_BEGIN, STREAM_END, TO_EOL, tokenImage, TRAILER, WHITE, XREF, XREF_F, XREF_N
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new PDF parser.PDFParser(CharStream stream) Creates a new PDF parser.
- 
Method SummaryModifier and TypeMethodDescriptionfinal Vectorarray()final voidcheckEOF()final Hashtablefinal voidfinal voidvoidfillXRefTable(Vector xref, int objNum) Allocate space in the xref table.final Tokenfinal TokengetToken(int index) final Integerinteger()final Objectleaf()final Objectfinal Objectfinal Stringfinal HashtablepdfXRefSection(Vector xref) final HashtablepdfXRefStream(Vector xref) final voidpdfXRefTable(Vector xref) final Doublereal()final ObjectvoidReInit(CharStream stream) voidvoidresetLexingData(byte[] newdata, int offset) voidresetLexingLocation(int offset) final intfinal Objectfinal Hashtabletrailer()final int
- 
Field Details- 
pdfdata
- 
token_source
- 
token
- 
jj_nt
- 
lookingAheadpublic boolean lookingAhead
 
- 
- 
Constructor Details- 
PDFParserpublic PDFParser()Creates a new PDF parser.
- 
PDFParserCreates a new PDF parser.
- 
PDFParser
- 
PDFParser
 
- 
- 
Method Details- 
resetLexingLocationpublic void resetLexingLocation(int offset) 
- 
resetLexingDatapublic void resetLexingData(byte[] newdata, int offset) 
- 
fillXRefTableAllocate space in the xref table. Fills any holes up to and including objNum with empty entries
- 
pdfversion- Throws:
- ParseException
 
- 
checkEOF- Throws:
- ParseException
 
- 
startxref- Throws:
- ParseException
 
- 
pdf_object- Throws:
- ParseException
 
- 
reference- Throws:
- ParseException
 
- 
object_definition- Throws:
- ParseException
 
- 
array- Throws:
- ParseException
 
- 
dictionary- Throws:
- ParseException
 
- 
stream- Throws:
- ParseException
 
- 
leaf- Throws:
- ParseException
 
- 
integer- Throws:
- ParseException
 
- 
real- Throws:
- ParseException
 
- 
xrefentrystate- Throws:
- ParseException
 
- 
pdfXRefSection- Throws:
- ParseException
 
- 
pdfXRefTable- Throws:
- ParseException
 
- 
pdfXRefStream- Throws:
- ParseException
 
- 
trailer- Throws:
- ParseException
 
- 
ReInit
- 
ReInit
- 
getNextToken
- 
getToken
- 
generateParseException
- 
enable_tracingpublic final void enable_tracing()
- 
disable_tracingpublic final void disable_tracing()
 
-