| |
|
| java.lang.Object com.lowagie.text.pdf.PdfContentParser
PdfContentParser | public class PdfContentParser (Code) | | Parses the page or template content.
author: Paulo Soares (psoares@consiste.pt) |
Field Summary | |
final public static int | COMMAND_TYPE Commands have this type. |
COMMAND_TYPE | final public static int COMMAND_TYPE(Code) | | Commands have this type.
|
PdfContentParser | public PdfContentParser(PRTokeniser tokeniser)(Code) | | Creates a new instance of PdfContentParser
Parameters: tokeniser - the tokeniser with the content |
getTokeniser | public PRTokeniser getTokeniser()(Code) | | Gets the tokeniser.
the tokeniser. |
nextValidToken | public boolean nextValidToken() throws IOException(Code) | | Reads the next token skipping over the comments.
true if a token was read, false if the end of content was reached throws: IOException - on error |
parse | public ArrayList parse(ArrayList ls) throws IOException(Code) | | Parses a single command from the content. Each command is output as an array of arguments
having the command itself as the last element. The returned array will be empty if the
end of content was reached.
Parameters: ls - an ArrayList to use. It will be cleared before using. If it'snull will create a new ArrayList the same ArrayList given as argument or a new one throws: IOException - on error |
setTokeniser | public void setTokeniser(PRTokeniser tokeniser)(Code) | | Sets the tokeniser.
Parameters: tokeniser - the tokeniser |
|
|
|