Package com.ribs.pdf
Class PDFParser
- java.lang.Object
- 
- com.ribs.pdf.PDFParser
 
- 
- All Implemented Interfaces:
- PDFParserConstants
 
 public class PDFParser extends java.lang.Object implements PDFParserConstants 
- 
- 
Field SummaryFields Modifier and Type Field Description Tokenjj_ntbooleanlookingAheadPDFCharStreampdfdataTokentokenPDFParserTokenManagertoken_source- 
Fields 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 SummaryConstructors Constructor Description PDFParser()Creates a new PDF parser.PDFParser(CharStream stream)PDFParser(PDFFile aPdfFile, byte[] data)Creates a new PDF parser.PDFParser(PDFParserTokenManager tm)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vectorarray()voidcheckEOF()java.util.Hashtabledictionary()voiddisable_tracing()voidenable_tracing()voidfillXRefTable(java.util.Vector xref, int objNum)Allocate space in the xref table.ParseExceptiongenerateParseException()TokengetNextToken()TokengetToken(int index)java.lang.Integerinteger()java.lang.Objectleaf()java.lang.Objectobject_definition()java.lang.Objectpdf_object()java.lang.Stringpdfversion()java.util.HashtablepdfXRefSection(java.util.Vector xref)java.util.HashtablepdfXRefStream(java.util.Vector xref)voidpdfXRefTable(java.util.Vector xref)java.lang.Doublereal()java.lang.Objectreference()voidReInit(CharStream stream)voidReInit(PDFParserTokenManager tm)voidresetLexingData(byte[] newdata, int offset)voidresetLexingLocation(int offset)intstartxref()java.lang.Objectstream(java.util.Hashtable d)java.util.Hashtabletrailer()intxrefentrystate()
 
- 
- 
- 
Field Detail- 
pdfdatapublic PDFCharStream pdfdata 
 - 
token_sourcepublic PDFParserTokenManager token_source 
 - 
tokenpublic Token token 
 - 
jj_ntpublic Token jj_nt 
 - 
lookingAheadpublic boolean lookingAhead 
 
- 
 - 
Constructor Detail- 
PDFParserpublic PDFParser() Creates a new PDF parser.
 - 
PDFParserpublic PDFParser(PDFFile aPdfFile, byte[] data) Creates a new PDF parser.
 - 
PDFParserpublic PDFParser(CharStream stream) 
 - 
PDFParserpublic PDFParser(PDFParserTokenManager tm) 
 
- 
 - 
Method Detail- 
resetLexingLocationpublic void resetLexingLocation(int offset) 
 - 
resetLexingDatapublic void resetLexingData(byte[] newdata, int offset)
 - 
fillXRefTablepublic void fillXRefTable(java.util.Vector xref, int objNum)Allocate space in the xref table. Fills any holes up to and including objNum with empty entries
 - 
pdfversionpublic final java.lang.String pdfversion() throws ParseException- Throws:
- ParseException
 
 - 
checkEOFpublic final void checkEOF() throws ParseException- Throws:
- ParseException
 
 - 
startxrefpublic final int startxref() throws ParseException- Throws:
- ParseException
 
 - 
pdf_objectpublic final java.lang.Object pdf_object() throws ParseException- Throws:
- ParseException
 
 - 
referencepublic final java.lang.Object reference() throws ParseException- Throws:
- ParseException
 
 - 
object_definitionpublic final java.lang.Object object_definition() throws ParseException- Throws:
- ParseException
 
 - 
arraypublic final java.util.Vector array() throws ParseException- Throws:
- ParseException
 
 - 
dictionarypublic final java.util.Hashtable dictionary() throws ParseException- Throws:
- ParseException
 
 - 
streampublic final java.lang.Object stream(java.util.Hashtable d) throws ParseException- Throws:
- ParseException
 
 - 
leafpublic final java.lang.Object leaf() throws ParseException- Throws:
- ParseException
 
 - 
integerpublic final java.lang.Integer integer() throws ParseException- Throws:
- ParseException
 
 - 
realpublic final java.lang.Double real() throws ParseException- Throws:
- ParseException
 
 - 
xrefentrystatepublic final int xrefentrystate() throws ParseException- Throws:
- ParseException
 
 - 
pdfXRefSectionpublic final java.util.Hashtable pdfXRefSection(java.util.Vector xref) throws ParseException- Throws:
- ParseException
 
 - 
pdfXRefTablepublic final void pdfXRefTable(java.util.Vector xref) throws ParseException- Throws:
- ParseException
 
 - 
pdfXRefStreampublic final java.util.Hashtable pdfXRefStream(java.util.Vector xref) throws ParseException- Throws:
- ParseException
 
 - 
trailerpublic final java.util.Hashtable trailer() throws ParseException- Throws:
- ParseException
 
 - 
ReInitpublic void ReInit(CharStream stream) 
 - 
ReInitpublic void ReInit(PDFParserTokenManager tm) 
 - 
getNextTokenpublic final Token getNextToken() 
 - 
getTokenpublic final Token getToken(int index) 
 - 
generateParseExceptionpublic ParseException generateParseException() 
 - 
enable_tracingpublic final void enable_tracing() 
 - 
disable_tracingpublic final void disable_tracing() 
 
- 
 
-