|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.util.parsers.PostScriptParser
org.pdfclown.tokens.BaseParser
public class BaseParser
Base PDF parser [PDF:1.7:3.2].
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.pdfclown.util.parsers.PostScriptParser |
---|
PostScriptParser.TokenTypeEnum |
Constructor Summary | |
---|---|
protected |
BaseParser(byte[] data)
|
protected |
BaseParser(IInputStream stream)
|
Method Summary | |
---|---|
boolean |
moveNext()
Moves the pointer to the next token. |
PdfDataObject |
parsePdfObject()
Parses the current PDF object [PDF:1.6:3.2]. |
PdfDataObject |
parsePdfObject(int offset)
Parses a PDF object after moving to the given token offset. |
Methods inherited from class org.pdfclown.util.parsers.PostScriptParser |
---|
close, finalize, getHex, getLength, getPosition, getStream, getToken, getToken, getTokenType, hashCode, isDelimiter, isEOL, isWhitespace, moveNext, seek, setToken, setTokenType, skip, skipEOL, skipWhitespace |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseParser(IInputStream stream)
protected BaseParser(byte[] data)
Method Detail |
---|
public boolean moveNext()
PostScriptParser
To properly parse the current token, the pointer MUST be just before its starting (leading whitespaces are ignored). When this method terminates, the pointer IS at the last byte of the current token.
moveNext
in class PostScriptParser
public PdfDataObject parsePdfObject()
public PdfDataObject parsePdfObject(int offset)
offset
- Number of tokens to skip before reaching the intended one.parsePdfObject()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |