Class Parser


public class Parser extends DocumentParser
  • Field Details

  • Constructor Details

  • Method Details

    • tag

      protected void tag(String name, TagProperties atts, boolean endTag, boolean emptyTag)
      Description copied from class: DocumentParser
      This method emits a tag It should be overridden by the subclass
      Specified by:
      tag in class DocumentParser
    • pi

      protected void pi(String target, String data)
      Description copied from class: DocumentParser
      This method emits a pi It should be overridden by the subclass
      Specified by:
      pi in class DocumentParser
    • doctype

      protected void doctype(String root, String publicId, String systemId)
      Description copied from class: DocumentParser
      This method emits a doctype. Internal subset information is discarded It should be overridden by the subclass
      Specified by:
      doctype in class DocumentParser
    • flush

      protected void flush(char[] buf, int offset, int length)
      Description copied from class: DocumentParser
      This method creates a block of text for a document. It should be overridden by the subclass
      Specified by:
      flush in class DocumentParser
    • comment

      protected void comment(String s)
      Description copied from class: DocumentParser
      This method inserts a comment It should be overridden by the subclass
      Specified by:
      comment in class DocumentParser
    • errorString

      protected void errorString(String s)
      Description copied from class: DocumentParser
      This method inserts a parse error string into the document It should be overridden by the subclass
      Specified by:
      errorString in class DocumentParser
    • documentAttribute

      protected String documentAttribute(String name)
      Description copied from class: DocumentParser
      This method looks up a &xxx; sequence in the document properties (this is used for templates). A return of null means the proerty is undefined. It should be overridden by the subclass
      Specified by:
      documentAttribute in class DocumentParser
    • addParserListener

      public void addParserListener(ParserListener l)
    • removeParserListener

      public void removeParserListener(ParserListener l)