Class PDFParser
- java.lang.Object
-
- com.inductiveautomation.rm.pdf.reader.PDFParser
-
- All Implemented Interfaces:
PDFParserConstants
public class PDFParser extends java.lang.Object implements PDFParserConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
boolean
lookingAhead
PDFCharStream
pdfdata
Token
token
PDFParserTokenManager
token_source
-
Fields 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
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vector
array()
void
checkEOF()
java.util.Hashtable
dictionary()
void
disable_tracing()
void
enable_tracing()
void
fillXRefTable(java.util.Vector xref, int objNum)
Allocate space in the xref table.ParseException
generateParseException()
Token
getNextToken()
Token
getToken(int index)
java.lang.Integer
integer()
java.lang.Object
leaf()
java.lang.Object
object_definition()
java.lang.Object
pdf_object()
java.lang.String
pdfversion()
java.util.Hashtable
pdfXRefSection(java.util.Vector xref)
java.util.Hashtable
pdfXRefStream(java.util.Vector xref)
void
pdfXRefTable(java.util.Vector xref)
java.lang.Double
real()
java.lang.Object
reference()
void
ReInit(CharStream stream)
void
ReInit(PDFParserTokenManager tm)
void
resetLexingData(byte[] newdata, int offset)
void
resetLexingLocation(int offset)
int
startxref()
java.lang.Object
stream(java.util.Hashtable d)
java.util.Hashtable
trailer()
int
xrefentrystate()
-
-
-
Field Detail
-
pdfdata
public PDFCharStream pdfdata
-
token_source
public PDFParserTokenManager token_source
-
token
public Token token
-
jj_nt
public Token jj_nt
-
lookingAhead
public boolean lookingAhead
-
-
Constructor Detail
-
PDFParser
public PDFParser()
Creates a new PDF parser.
-
PDFParser
public PDFParser(PDFFile aPdfFile, byte[] data)
Creates a new PDF parser.
-
PDFParser
public PDFParser(CharStream stream)
-
PDFParser
public PDFParser(PDFParserTokenManager tm)
-
-
Method Detail
-
resetLexingLocation
public void resetLexingLocation(int offset)
-
resetLexingData
public void resetLexingData(byte[] newdata, int offset)
-
fillXRefTable
public 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
-
pdfversion
public final java.lang.String pdfversion() throws ParseException
- Throws:
ParseException
-
checkEOF
public final void checkEOF() throws ParseException
- Throws:
ParseException
-
startxref
public final int startxref() throws ParseException
- Throws:
ParseException
-
pdf_object
public final java.lang.Object pdf_object() throws ParseException
- Throws:
ParseException
-
reference
public final java.lang.Object reference() throws ParseException
- Throws:
ParseException
-
object_definition
public final java.lang.Object object_definition() throws ParseException
- Throws:
ParseException
-
array
public final java.util.Vector array() throws ParseException
- Throws:
ParseException
-
dictionary
public final java.util.Hashtable dictionary() throws ParseException
- Throws:
ParseException
-
stream
public final java.lang.Object stream(java.util.Hashtable d) throws ParseException
- Throws:
ParseException
-
leaf
public final java.lang.Object leaf() throws ParseException
- Throws:
ParseException
-
integer
public final java.lang.Integer integer() throws ParseException
- Throws:
ParseException
-
real
public final java.lang.Double real() throws ParseException
- Throws:
ParseException
-
xrefentrystate
public final int xrefentrystate() throws ParseException
- Throws:
ParseException
-
pdfXRefSection
public final java.util.Hashtable pdfXRefSection(java.util.Vector xref) throws ParseException
- Throws:
ParseException
-
pdfXRefTable
public final void pdfXRefTable(java.util.Vector xref) throws ParseException
- Throws:
ParseException
-
pdfXRefStream
public final java.util.Hashtable pdfXRefStream(java.util.Vector xref) throws ParseException
- Throws:
ParseException
-
trailer
public final java.util.Hashtable trailer() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
-
ReInit
public void ReInit(PDFParserTokenManager tm)
-
getNextToken
public final Token getNextToken()
-
getToken
public final Token getToken(int index)
-
generateParseException
public ParseException generateParseException()
-
enable_tracing
public final void enable_tracing()
-
disable_tracing
public final void disable_tracing()
-
-