Content stream parser [PDF:1.6:3.7.1]. More...
Public Types | |
| enum | TokenTypeEnum { Keyword, Boolean, Integer, Real, Literal, Hex, Name, Comment, ArrayBegin, ArrayEnd, DictionaryBegin, DictionaryEnd, Null } |
Public Member Functions | |
| ContentParser (byte[] data) | |
| void | Dispose () |
| override int | GetHashCode () |
| object | GetToken (int offset) |
| Gets a token after moving to the given offset. | |
| bool | MoveNext (int offset) |
| Moves the pointer to the next token. | |
| override bool | MoveNext () |
| Moves the pointer to the next token. | |
| ContentObject | ParseContentObject () |
| Parses the next content object [PDF:1.6:4.1]. | |
| IList< ContentObject > | ParseContentObjects () |
| Parses the next content objects. | |
| Operation | ParseOperation () |
| Parses the next operation. | |
| PdfDataObject | ParsePdfObject (int offset) |
| Parses a PDF object after moving to the given token offset. | |
| override PdfDataObject | ParsePdfObject () |
| Parses the current PDF object [PDF:1.6:3.2]. | |
| void | Seek (long offset) |
| Moves the pointer to the given absolute byte position. | |
| void | Skip (long offset) |
| Moves the pointer to the given relative byte position. | |
| bool | SkipEOL () |
| Moves the pointer before the next non-EOL character after the current position. | |
| bool | SkipWhitespace () |
| Moves the pointer before the next non-whitespace character after the current position. | |
Properties | |
| long | Length [get] |
| long | Position [get] |
| IInputStream | Stream [get] |
| object | Token [get, set] |
| Gets the currently-parsed token. | |
| TokenTypeEnum | TokenType [get, set] |
| Gets the currently-parsed token type. | |
Content stream parser [PDF:1.6:3.7.1].
enum org::pdfclown::util::parsers::PostScriptParser::TokenTypeEnum [inherited] |
| org.pdfclown.documents.contents.tokens.ContentParser.ContentParser | ( | byte[] | data | ) |
| void org.pdfclown.util.parsers.PostScriptParser.Dispose | ( | ) | [inherited] |
| override int org.pdfclown.util.parsers.PostScriptParser.GetHashCode | ( | ) | [inherited] |
References org.pdfclown.bytes.IInputStream.GetHashCode().
| object org.pdfclown.util.parsers.PostScriptParser.GetToken | ( | int | offset | ) | [inherited] |
Gets a token after moving to the given offset.
| offset | Number of tokens to skip before reaching the intended one. |
| bool org.pdfclown.util.parsers.PostScriptParser.MoveNext | ( | int | offset | ) | [inherited] |
Moves the pointer to the next token.
| offset | Number of tokens to skip before reaching the intended one. |
| override bool org.pdfclown.tokens.BaseParser.MoveNext | ( | ) | [virtual, inherited] |
Moves the pointer to the next token.
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.
Reimplemented from org.pdfclown.util.parsers.PostScriptParser.
Reimplemented in org.pdfclown.tokens.FileParser.
| ContentObject org.pdfclown.documents.contents.tokens.ContentParser.ParseContentObject | ( | ) |
Parses the next content object [PDF:1.6:4.1].
| IList<ContentObject> org.pdfclown.documents.contents.tokens.ContentParser.ParseContentObjects | ( | ) |
Parses the next content objects.
| Operation org.pdfclown.documents.contents.tokens.ContentParser.ParseOperation | ( | ) |
Parses the next operation.
| PdfDataObject org.pdfclown.tokens.BaseParser.ParsePdfObject | ( | int | offset | ) | [inherited] |
Parses a PDF object after moving to the given token offset.
| offset | Number of tokens to skip before reaching the intended one. |
| override PdfDataObject org.pdfclown.documents.contents.tokens.ContentParser.ParsePdfObject | ( | ) | [virtual] |
Parses the current PDF object [PDF:1.6:3.2].
Reimplemented from org.pdfclown.tokens.BaseParser.
| void org.pdfclown.util.parsers.PostScriptParser.Seek | ( | long | offset | ) | [inherited] |
Moves the pointer to the given absolute byte position.
| void org.pdfclown.util.parsers.PostScriptParser.Skip | ( | long | offset | ) | [inherited] |
Moves the pointer to the given relative byte position.
| bool org.pdfclown.util.parsers.PostScriptParser.SkipEOL | ( | ) | [inherited] |
Moves the pointer before the next non-EOL character after the current position.
| bool org.pdfclown.util.parsers.PostScriptParser.SkipWhitespace | ( | ) | [inherited] |
Moves the pointer before the next non-whitespace character after the current position.
long org.pdfclown.util.parsers.PostScriptParser.Length [get, inherited] |
long org.pdfclown.util.parsers.PostScriptParser.Position [get, inherited] |
IInputStream org.pdfclown.util.parsers.PostScriptParser.Stream [get, inherited] |
object org.pdfclown.util.parsers.PostScriptParser.Token [get, set, inherited] |
Gets the currently-parsed token.
TokenTypeEnum org.pdfclown.util.parsers.PostScriptParser.TokenType [get, set, inherited] |
Gets the currently-parsed token type.
Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.
Generated on Sat Feb 9 21:08:35 2013 for PDF Clown 0.1.2 by
1.6.3