org.apache.commons.feedparser.locate
Class AnchorParser

java.lang.Object
  extended by org.apache.commons.feedparser.locate.AnchorParser

public class AnchorParser
extends Object

Given a string of HTML content, parse out anchors and fire events with all the data when they are found.

Author:
Kevin A. Burton

Constructor Summary
AnchorParser()
           
 
Method Summary
static void main(String[] args)
           
static void parse(String content, AnchorParserListener listener)
           
static void parseAnchors(String content, AnchorParserListener listener)
          Deprecated. use HTParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorParser

public AnchorParser()
Method Detail

parse

public static void parse(String content,
                         AnchorParserListener listener)
                  throws AnchorParserException
Throws:
AnchorParserException

parseAnchors

public static void parseAnchors(String content,
                                AnchorParserListener listener)
                         throws AnchorParserException
Deprecated. use HTParser

Get links from the given html with included titles and other metainfo.

Throws:
AnchorParserException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.