| |
|
| java.lang.Object org.pdfbox.pdfparser.BaseParser org.pdfbox.pdfparser.PDFStreamParser
PDFStreamParser | public class PDFStreamParser extends BaseParser (Code) | | This will parse a PDF byte stream and extract operands and such.
author: Ben Litchfield version: $Revision: 1.32 $ |
Method Summary | |
public List | getTokens() This will get the tokens that were parsed from the stream. | public void | parse() This will parse the tokens in the stream. | protected String | readOperator() This will read an operator from the stream. |
PDFStreamParser | public PDFStreamParser(InputStream stream, RandomAccess raf) throws IOException(Code) | | Constructor that takes a stream to parse.
Parameters: stream - The stream to read data from. Parameters: raf - The random access file. throws: IOException - If there is an error reading from the stream. |
PDFStreamParser | public PDFStreamParser(PDStream stream) throws IOException(Code) | | Constructor.
Parameters: stream - The stream to parse. throws: IOException - If there is an error initializing the stream. |
PDFStreamParser | public PDFStreamParser(COSStream stream) throws IOException(Code) | | Constructor.
Parameters: stream - The stream to parse. throws: IOException - If there is an error initializing the stream. |
getTokens | public List getTokens()(Code) | | This will get the tokens that were parsed from the stream.
All of the tokens in the stream. |
parse | public void parse() throws IOException(Code) | | This will parse the tokens in the stream. This will close the
stream when it is finished parsing.
throws: IOException - If there is an error while parsing the stream. |
readOperator | protected String readOperator() throws IOException(Code) | | This will read an operator from the stream.
The operator that was read from the stream. throws: IOException - If there is an error reading from the stream. |
|
|
|