Class PDFParser
java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFParser
- All Implemented Interfaces:
PDFParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanFields inherited from interface com.inductiveautomation.rm.pdf.reader.PDFParserConstants
ARRAY_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 Summary
ConstructorsConstructorDescriptionCreates a new PDF parser.PDFParser(CharStream stream) Creates a new PDF parser. -
Method Summary
Modifier 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
-
lookingAhead
public boolean lookingAhead
-
-
Constructor Details
-
PDFParser
public PDFParser()Creates a new PDF parser. -
PDFParser
Creates a new PDF parser. -
PDFParser
-
PDFParser
-
-
Method Details
-
resetLexingLocation
public void resetLexingLocation(int offset) -
resetLexingData
public void resetLexingData(byte[] newdata, int offset) -
fillXRefTable
Allocate 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_tracing
public final void enable_tracing() -
disable_tracing
public final void disable_tracing()
-