public class PDFObjectStreamParser extends BaseParser
DEF, document, ENDOBJ, ENDSTREAM, forceParsing, pdfSource, PROP_PUSHBACK_SIZE
Constructor | Description |
---|---|
PDFObjectStreamParser(COSStream strm,
COSDocument doc) |
Constructor.
|
PDFObjectStreamParser(COSStream strm,
COSDocument doc,
boolean forceParsing) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.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 java.io.IOException
strm
- The stream to parse.doc
- The document for the current parsing.forceParsing
- flag to skip malformed or otherwise unparseable
input where possiblejava.io.IOException
- If there is an error initializing the stream.public PDFObjectStreamParser(COSStream strm, COSDocument doc) throws java.io.IOException
strm
- The stream to parse.doc
- The document for the current parsing.java.io.IOException
- If there is an error initializing the stream.public void parse() throws java.io.IOException
java.io.IOException
- If there is an error while parsing the stream.public java.util.List<COSObject> getObjects()