public class PDFObjectStreamParser extends BaseParser
DEF, document, ENDOBJ, ENDSTREAM, forceParsing, pdfSource, PROP_PUSHBACK_SIZE
Constructor and Description |
---|
PDFObjectStreamParser(COSStream strm,
COSDocument doc)
Constructor.
|
PDFObjectStreamParser(COSStream strm,
COSDocument doc,
boolean forceParsing)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<COSObject> |
getObjects()
This will get the objects that were parsed from the stream.
|
void |
parse()
This will parse the tokens in the stream.
|
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 PDFObjectStreamParser(COSStream strm, COSDocument doc, boolean forceParsing) throws IOException
strm
- The stream to parse.doc
- The document for the current parsing.forceParsing
- flag to skip malformed or otherwise unparseable
input where possibleIOException
- If there is an error initializing the stream.public PDFObjectStreamParser(COSStream strm, COSDocument doc) throws IOException
strm
- The stream to parse.doc
- The document for the current parsing.IOException
- 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-2015 The Apache Software Foundation. All Rights Reserved.