public class PDFXrefStreamParser extends BaseParser
DEF, document, ENDOBJ, ENDSTREAM, forceParsing, pdfSource, PROP_PUSHBACK_SIZE
Constructor and Description |
---|
PDFXrefStreamParser(COSStream strm,
COSDocument doc,
boolean forceParsing,
XrefTrailerResolver resolver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
parse()
Parses through the unfiltered stream and populates the xrefTable HashMap.
|
clearResources, isClosing, isClosing, isEndOfName, isEOL, isEOL, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSStream, parseCOSString, parseCOSString, parseDirObject, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, readUntilEndStream, setDocument, skipSpaces
public PDFXrefStreamParser(COSStream strm, COSDocument doc, boolean forceParsing, XrefTrailerResolver resolver) throws IOException
strm
- The stream to parse.doc
- The document for the current parsing.forceParsing
- flag to skip malformed or otherwise unparseable
input where possibleresolver
- resolver to read the xref/trailer informationIOException
- If there is an error initializing the stream.public void parse() throws IOException
IOException
- If there is an error while parsing the stream.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.