public class FDFParser extends COSParser
EOF_MARKER, fileLen, initialParseDone, OBJ_MARKER, securityHandler, source, SYSPROP_EOFLOOKUPRANGE, SYSPROP_PARSEMINIMAL, TMP_FILE_PREFIX, xrefTrailerResolver
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, N, O, R, S, seqSource, STREAM_STRING, T
Constructor and Description |
---|
FDFParser(File file)
Constructs parser for given file using given buffer for temporary
storage.
|
FDFParser(InputStream input)
Constructor.
|
FDFParser(String filename)
Constructs parser for given file using memory buffer.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isCatalog(COSDictionary dictionary)
Tell if the dictionary is a FDF catalog.
|
void |
parse()
This will parse the stream and populate the COSDocument object.
|
checkPages, getDocument, getStartxrefOffset, isLenient, lastIndexOf, parseCOSStream, parseDictObjects, parseFDFHeader, parseObjectDynamically, parseObjectDynamically, parsePDFHeader, parseTrailerValuesDynamically, parseXref, parseXrefTable, rebuildTrailer, retrieveTrailer, setEOFLookupRange, setLenient
isClosing, isClosing, isDigit, isDigit, isEndOfName, isEOL, isEOL, isSpace, isSpace, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSString, parseDirObject, readExpectedChar, readExpectedString, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, skipSpaces, skipWhiteSpaces
public FDFParser(String filename) throws IOException
filename
- the filename of the pdf to be parsedIOException
- If something went wrong.public FDFParser(File file) throws IOException
file
- the pdf to be parsedIOException
- If something went wrong.public FDFParser(InputStream input) throws IOException
input
- input stream representing the pdf.IOException
- If something went wrong.protected final boolean isCatalog(COSDictionary dictionary)
public void parse() throws IOException
IOException
- If there is an error reading from the stream or corrupt data
is found.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.