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, seqSource, STREAM_STRING, T
Constructor and Description |
---|
PDFStreamParser(byte[] bytes)
Constructor.
|
PDFStreamParser(COSStream stream)
Deprecated.
Use
PDFStreamParser(PDContentStream) instead. |
PDFStreamParser(PDContentStream contentStream)
Constructor.
|
PDFStreamParser(PDStream stream)
Deprecated.
Use
PDFStreamParser(PDContentStream) instead. |
Modifier and Type | Method and Description |
---|---|
List<Object> |
getTokens()
This will get the tokens that were parsed from the stream.
|
void |
parse()
This will parse the tokens in the stream.
|
Object |
parseNextToken()
This will parse the next token in the stream.
|
protected String |
readOperator()
This will read an operator from 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
@Deprecated public PDFStreamParser(PDStream stream) throws IOException
PDFStreamParser(PDContentStream)
instead.stream
- The stream to parse.IOException
- If there is an error initializing the stream.@Deprecated public PDFStreamParser(COSStream stream) throws IOException
PDFStreamParser(PDContentStream)
instead.stream
- The stream to parse.IOException
- If there is an error initializing the stream.public PDFStreamParser(PDContentStream contentStream) throws IOException
contentStream
- The content stream to parse.IOException
- If there is an error initializing the stream.public PDFStreamParser(byte[] bytes) throws IOException
bytes
- the bytes to parse.IOException
- If there is an error initializing the stream.public void parse() throws IOException
IOException
- If there is an error while parsing the stream.public List<Object> getTokens()
public Object parseNextToken() throws IOException
IOException
- If an io error occurs while parsing the stream.protected String readOperator() throws IOException
IOException
- If there is an error reading from the stream.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.