public class PDFParser extends Object implements PDFParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
String |
pdfHeader |
Token |
token
Current token.
|
PDFParserTokenManager |
token_source
Generated Token Manager.
|
BINARY_TAG, CrossRefTable, DEFAULT, DIGITS, END_DICTONNARY, END_LITERAL, END_OBJECT, END_STREAM, EOF, EOF_TRAILER_TAG, EOL, FIRST_OBJECT_NUMBER, FULL_LINE, HTML_CLOSE, HTML_OPEN, INNER_START_LIT, LOWERLETTER, OBJ_ARRAY_END, OBJ_ARRAY_START, OBJ_BOOLEAN, OBJ_NAME, OBJ_NULL, OBJ_NUMBER, OBJ_NUMERIC, OBJ_REF, OBJ_STRING_HEX, OBJ_STRING_LIT, OTHER_WHITE_SPACE, PDFA_HEADER, PERCENT, SPACE, START_DICTONNARY, START_OBJECT, STARTXREF_TAG, STREAM, SUBSECTION_ENTRIES, SUBSECTION_START, tokenImage, TRAILER_TAG, UNBALANCED_LEFT_PARENTHESES, UNBALANCED_RIGHT_PARENTHESES, UNICODE, UPPERLETTER, WithinLIT, WithinStream, WithinTrailer, XREF_TAG
Constructor and Description |
---|
PDFParser(InputStream stream)
Constructor with InputStream.
|
PDFParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
PDFParser(PDFParserTokenManager tm)
Constructor with generated Token Manager.
|
PDFParser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
array_of_object() |
void |
dictionary_object() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
indirect_object() |
static void |
main(String[] args) |
void |
object_content() |
static boolean |
parse(InputStream is) |
void |
PDF_body() |
void |
PDF_cross_ref_table() |
void |
PDF_header() |
void |
PDF_linearized_modified() |
void |
PDF_trailer_dictionnary() |
void |
PDF_Trailer_XRefOffset() |
void |
PDF() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(PDFParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
start_literal() |
public String pdfHeader
public PDFParserTokenManager token_source
public Token token
public Token jj_nt
public PDFParser(InputStream stream)
public PDFParser(InputStream stream, String encoding)
public PDFParser(Reader stream)
public PDFParser(PDFParserTokenManager tm)
public static boolean parse(InputStream is) throws IOException, ParseException
IOException
ParseException
public static void main(String[] args)
public final void indirect_object() throws ParseException
ParseException
public final void object_content() throws ParseException
ParseException
public final void array_of_object() throws ParseException
ParseException
public final void start_literal() throws ParseException
ParseException
public final void dictionary_object() throws ParseException
ParseException
public final void PDF_header() throws ParseException, HeaderParseException
ParseException
HeaderParseException
public final void PDF_body() throws ParseException, BodyParseException
ParseException
BodyParseException
public final void PDF_cross_ref_table() throws ParseException, CrossRefParseException
ParseException
CrossRefParseException
public final void PDF_trailer_dictionnary() throws ParseException, TrailerParseException
ParseException
TrailerParseException
public final void PDF_Trailer_XRefOffset() throws ParseException, TrailerParseException
ParseException
TrailerParseException
public final void PDF_linearized_modified() throws ParseException, PdfParseException
ParseException
PdfParseException
public final void PDF() throws ParseException, PdfParseException
ParseException
PdfParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(PDFParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.