Class HTMLParser

java.lang.Object
com.nomagic.magicreport.format.html.HTMLParser

@OpenApiAll public class HTMLParser extends Object
A HTML parser to load an HTML document with an HTML element structure. The parser builds up tokens (Element) that describe the element subtree desired, and notify to the handler.
Since:
May 21, 2009
  • Constructor Details

    • HTMLParser

      public HTMLParser()
      Create HTMLReader.
  • Method Details

    • parse

      public void parse(Reader reader, IHTMLHandler handle) throws IOException
      Parse the content of the reader specified as HTML using the specified IHTMLHandler.
      Parameters:
      reader - the reader containing HTML source.
      handle - the HTML handler to be used.
      Throws:
      IOException - If any IO errors occur.