Package com.ribs.pdf
Class PDFParser
java.lang.Object
com.ribs.pdf.PDFParser
- All Implemented Interfaces:
PDFParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Fields inherited from interface com.ribs.pdf.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 Vector
array()
final void
checkEOF()
final Hashtable
final void
final void
void
fillXRefTable
(Vector xref, int objNum) Allocate space in the xref table.final Token
final Token
getToken
(int index) final Integer
integer()
final Object
leaf()
final Object
final Object
final String
final Hashtable
pdfXRefSection
(Vector xref) final Hashtable
pdfXRefStream
(Vector xref) final void
pdfXRefTable
(Vector xref) final Double
real()
final Object
void
ReInit
(CharStream stream) void
void
resetLexingData
(byte[] newdata, int offset) void
resetLexingLocation
(int offset) final int
final Object
final Hashtable
trailer()
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()
-