org.pdfbox.pdfparser
Class PDFStreamParser
public class PDFStreamParser
This will parse a PDF byte stream and extract operands and such.
List | getTokens() - This will get the tokens that were parsed from the stream.
|
void | parse() - This will parse the tokens in the stream.
|
protected String | readOperator() - This will read an operator from the stream.
|
addXref , getXrefs , isClosing , isClosing , isEOL , isEOL , isEndOfName , isWhitespace , isWhitespace , parseBoolean , parseCOSArray , parseCOSDictionary , parseCOSName , parseCOSStream , parseCOSString , parseDirObject , readExpectedString , readInt , readLine , readString , readString , setDocument , skipSpaces |
PDFStreamParser
public PDFStreamParser(InputStream stream,
RandomAccess raf)
throws IOException
Constructor that takes a stream to parse.
stream
- The stream to read data from.raf
- The random access file.
PDFStreamParser
public PDFStreamParser(COSStream stream)
throws IOException
Constructor.
stream
- The stream to parse.
PDFStreamParser
public PDFStreamParser(PDStream stream)
throws IOException
Constructor.
stream
- The stream to parse.
getTokens
public List getTokens()
This will get the tokens that were parsed from the stream.
- All of the tokens in the stream.
parse
public void parse()
throws IOException
This will parse the tokens in the stream. This will close the
stream when it is finished parsing.
readOperator
protected String readOperator()
throws IOException
This will read an operator from the stream.
- The operator that was read from the stream.