Package de.mhus.lib.parser.HtmlLinkParser

Examples of de.mhus.lib.parser.HtmlLinkParser.Listener


  protected String href;
  protected String target;

  public void testASingle() throws Exception {
    String test = "<a href='linkhref' target='linktarget'>LinkText</a>";
    Listener listener = new HtmlLinkParser.Listener() {
     
      @Override
      public void foundTag(Descriptor desc) {
        href = desc.getParameter("href");
        target = desc.getParameter("target");
View Full Code Here


   
  }
 
  public void testADouble() throws Exception {
    String test = "<a href=\"linkhref\" target=\"linktarget\">LinkText</a>";
    Listener listener = new HtmlLinkParser.Listener() {
     
      @Override
      public void foundTag(Descriptor desc) {
        href = desc.getParameter("href");
        target = desc.getParameter("target");
View Full Code Here

TOP

Related Classes of de.mhus.lib.parser.HtmlLinkParser.Listener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.