Class PdfContentParser
java.lang.Object
com.aowagie.text.pdf.PdfContentParser
Parses the page or template content.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Constructor Summary
ConstructorsConstructorDescriptionPdfContentParser(PRTokeniser tokeniser) Creates a new instance of PdfContentParser -
Method Summary
Modifier and TypeMethodDescriptionGets the tokeniser.Parses a single command from the content.voidsetTokeniser(PRTokeniser tokeniser) Sets the tokeniser.
-
Constructor Details
-
PdfContentParser
Creates a new instance of PdfContentParser- Parameters:
tokeniser- the tokeniser with the content
-
-
Method Details
-
parse
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- anArrayListto use. It will be cleared before using. If it'snullwill create a newArrayList- Returns:
- the same
ArrayListgiven as argument or a new one - Throws:
IOException- on error
-
getTokeniser
-
setTokeniser
Sets the tokeniser.- Parameters:
tokeniser- the tokeniser
-