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