|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdfparser.BaseParser
org.pdfbox.pdfparser.PDFStreamParser
public class PDFStreamParser
This will parse a PDF byte stream and extract operands and such.
Field Summary |
---|
Fields inherited from class org.pdfbox.pdfparser.BaseParser |
---|
DEF, ENDSTREAM, pdfSource |
Constructor Summary | |
---|---|
PDFStreamParser(COSStream stream)
Constructor. |
|
PDFStreamParser(java.io.InputStream stream,
RandomAccess raf)
Constructor that takes a stream to parse. |
|
PDFStreamParser(PDStream stream)
Constructor. |
Method Summary | |
---|---|
java.util.List |
getTokens()
This will get the tokens that were parsed from the stream. |
void |
parse()
This will parse the tokens in the stream. |
protected java.lang.String |
readOperator()
This will read an operator from the stream. |
Methods inherited from class org.pdfbox.pdfparser.BaseParser |
---|
addXref, getXrefs, isClosing, isClosing, isEndOfName, isEOL, isEOL, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSStream, parseCOSString, parseDirObject, readExpectedString, readInt, readLine, readString, readString, setDocument, skipSpaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFStreamParser(java.io.InputStream stream, RandomAccess raf) throws java.io.IOException
stream
- The stream to read data from.raf
- The random access file.
java.io.IOException
- If there is an error reading from the stream.public PDFStreamParser(PDStream stream) throws java.io.IOException
stream
- The stream to parse.
java.io.IOException
- If there is an error initializing the stream.public PDFStreamParser(COSStream stream) throws java.io.IOException
stream
- The stream to parse.
java.io.IOException
- If there is an error initializing the stream.Method Detail |
---|
public void parse() throws java.io.IOException
java.io.IOException
- If there is an error while parsing the stream.public java.util.List getTokens()
protected java.lang.String readOperator() throws java.io.IOException
java.io.IOException
- If there is an error reading from the stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |