public class PDFObjectStreamParser extends BaseParser
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG
Log instance.
|
private COSStream |
stream |
private java.util.List<COSObject> |
streamObjects |
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, MAX_LENGTH_LONG, N, O, R, S, seqSource, STREAM_STRING, T
Constructor and Description |
---|
PDFObjectStreamParser(COSStream stream,
COSDocument document)
Constructor.
|
Modifier and Type | Method and 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.
|
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
private static final org.apache.commons.logging.Log LOG
private java.util.List<COSObject> streamObjects
private final COSStream stream
public PDFObjectStreamParser(COSStream stream, COSDocument document) throws java.io.IOException
stream
- The stream to parse.document
- 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()