com.lowagie.text.pdf
public class PdfContentParser extends Object
| Field Summary | |
|---|---|
| static int | COMMAND_TYPE
Commands have this type. |
| PRTokeniser | tokeniser
Holds value of property tokeniser. |
| Constructor Summary | |
|---|---|
| PdfContentParser(PRTokeniser tokeniser)
Creates a new instance of PdfContentParser | |
| Method Summary | |
|---|---|
| PRTokeniser | getTokeniser()
Gets the tokeniser. |
| boolean | nextValidToken()
Reads the next token skipping over the comments. |
| ArrayList | parse(ArrayList ls)
Parses a single command from the content. |
| PdfArray | readArray()
Reads an array. |
| PdfDictionary | readDictionary()
Reads a dictionary. |
| PdfObject | readPRObject()
Reads a pdf object. |
| void | setTokeniser(PRTokeniser tokeniser)
Sets the tokeniser. |
Parameters: tokeniser the tokeniser with the content
Returns: the tokeniser.
Returns: true if a token was read, false if the end of content was reached
Throws: IOException on error
Parameters: ls an ArrayList to use. It will be cleared before using. If it's
null will create a new ArrayList
Returns: the same ArrayList given as argument or a new one
Throws: IOException on error
Returns: an array
Throws: IOException on error
Returns: the dictionary
Throws: IOException on error
Returns: the pdf object
Throws: IOException on error
Parameters: tokeniser the tokeniser