Class PdfContentParser

java.lang.Object
com.aowagie.text.pdf.PdfContentParser

public class PdfContentParser extends Object
Parses the page or template content.
Author:
Paulo Soares (psoares@consiste.pt)
  • Constructor Details

    • PdfContentParser

      public PdfContentParser(PRTokeniser tokeniser)
      Creates a new instance of PdfContentParser
      Parameters:
      tokeniser - the tokeniser with the content
  • Method Details

    • parse

      public ArrayList parse(ArrayList ls) throws IOException
      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's null will create a new ArrayList
      Returns:
      the same ArrayList given as argument or a new one
      Throws:
      IOException - on error
    • getTokeniser

      public PRTokeniser getTokeniser()
      Gets the tokeniser.
      Returns:
      the tokeniser.
    • setTokeniser

      public void setTokeniser(PRTokeniser tokeniser)
      Sets the tokeniser.
      Parameters:
      tokeniser - the tokeniser