public class PDFStreamParser extends BaseParser
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, N, O, R, S, source, STREAM_STRING, T| Constructor and Description |
|---|
PDFStreamParser(byte[] bytes)
Constructor.
|
PDFStreamParser(PDContentStream pdContentstream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying resource.
|
List<Object> |
parse()
This will parse all the tokens in the stream.
|
Object |
parseNextToken()
This will parse the next token in the stream.
|
getObjectKey, isClosing, isClosing, isDigit, isDigit, isEndOfName, isEOF, isEOL, isEOL, isSpace, isSpace, isWhitespace, isWhitespace, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSString, parseDirObject, readExpectedChar, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, skipSpaces, skipWhiteSpacespublic PDFStreamParser(PDContentStream pdContentstream) throws IOException
pdContentstream - The content stream to parse.IOException - If there is an error initializing the stream.public PDFStreamParser(byte[] bytes)
bytes - the bytes to parse.public List<Object> parse() throws IOException
IOException - If there is an error while parsing the stream.public Object parseNextToken() throws IOException
IOException - If an io error occurs while parsing the stream.public void close()
throws IOException
IOException - if something went wrongCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.