public class PDFObjectStreamParser extends BaseParser
DEF, document, ENDOBJ, ENDSTREAM, FORCE_PARSING, forceParsing, pdfSource
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.
|
isClosing, isClosing, isEndOfName, isEOL, isEOL, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSStream, parseCOSString, parseDirObject, readExpectedString, readInt, readLine, readString, readString, setDocument, skipSpaces
public PDFObjectStreamParser(COSStream strm, COSDocument doc, boolean forceParsing) throws IOException
strm
- The stream to parse.doc
- The document for the current parsing.forceParcing
- 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-2012 Apache Software Foundation. All Rights Reserved.