pt.tumba.parser
Class HyperLinks

java.lang.Object
  extended by pt.tumba.parser.HyperLinks

public class HyperLinks
extends java.lang.Object

Author:
Bruno Martins

Field Summary
private  java.util.Map links
           
 
Constructor Summary
protected HyperLinks()
           
 
Method Summary
protected  void addLink(java.lang.String url, java.lang.String alt2)
           
 java.util.Iterator getAnchors()
          Description of the Method
 java.lang.String getAnchorText(java.lang.String url2)
          Gets the anchorText attribute of the HTMLParser object
 java.lang.String getAnchorText(java.net.URL url)
          Gets the anchorText attribute of the HTMLParser object
 java.util.Map getLinkMap()
          Description of the Method
 java.util.Iterator getLinks()
          Description of the Method
 int getNumLinks()
          Description of the Method
 java.util.Iterator getURLs()
          Return the URL-Strings for all the URLs extracted from the document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

links

private java.util.Map links
Constructor Detail

HyperLinks

protected HyperLinks()
Method Detail

getLinkMap

public java.util.Map getLinkMap()
Description of the Method

Returns:
Description of the Return Value

getLinks

public java.util.Iterator getLinks()
Description of the Method

Returns:
Description of the Return Value

getNumLinks

public int getNumLinks()
Description of the Method

Returns:
Description of the Return Value

getURLs

public java.util.Iterator getURLs()
Return the URL-Strings for all the URLs extracted from the document

Returns:
An iterator over the URL-Strings extracted from the document

getAnchorText

public java.lang.String getAnchorText(java.lang.String url2)
Gets the anchorText attribute of the HTMLParser object

Parameters:
url - Description of the Parameter
Returns:
The anchorText value

getAnchorText

public java.lang.String getAnchorText(java.net.URL url)
Gets the anchorText attribute of the HTMLParser object

Parameters:
url - Description of the Parameter
Returns:
The anchorText value

addLink

protected void addLink(java.lang.String url,
                       java.lang.String alt2)

getAnchors

public java.util.Iterator getAnchors()
Description of the Method

Returns:
Description of the Return Value