|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfContentParser
public class PdfContentParser
Parses the page or template content.
| Field Summary | |
|---|---|
static int |
COMMAND_TYPE
Commands have this type. |
private 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COMMAND_TYPE
private PRTokeniser tokeniser
| Constructor Detail |
|---|
public PdfContentParser(PRTokeniser tokeniser)
tokeniser - the tokeniser with the content| Method Detail |
|---|
public ArrayList parse(ArrayList ls)
throws IOException
ls - an ArrayList to use. It will be cleared before using. If it's
null will create a new ArrayList
ArrayList given as argument or a new one
IOException - on errorpublic PRTokeniser getTokeniser()
public void setTokeniser(PRTokeniser tokeniser)
tokeniser - the tokeniser
public PdfDictionary readDictionary()
throws IOException
IOException - on error
public PdfArray readArray()
throws IOException
IOException - on error
public PdfObject readPRObject()
throws IOException
IOException - on error
public boolean nextValidToken()
throws IOException
true if a token was read, false if the end of content was reached
IOException - on error
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||