org.apache.lenya.util
Class HTML

java.lang.Object
  extended by org.apache.lenya.util.HTML

public class HTML
extends java.lang.Object

http://developer.java.sun/developer/TechTips/1999/tt0923.html


Constructor Summary
HTML(java.lang.String uri)
          Creates a new HTML object from a URI
 
Method Summary
 java.util.List getAnchorHRefs(boolean duplicate)
          Get Anchor Hrefs
 java.util.List getImageSrcs(boolean duplicate)
          Get Image src attributes
 java.util.List getLinkHRefs(boolean duplicate)
          Get Link hrefs
static void main(java.lang.String[] args)
          Command line interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTML

public HTML(java.lang.String uri)
     throws java.io.IOException
Creates a new HTML object from a URI

Parameters:
uri - The URI
Throws:
java.io.IOException - if a IO error occurs
Method Detail

main

public static void main(java.lang.String[] args)
Command line interface

Parameters:
args - Command line args

getAnchorHRefs

public java.util.List getAnchorHRefs(boolean duplicate)
Get Anchor Hrefs

Parameters:
duplicate - Whether you want duplicate HREFS
Returns:
A list of Hrefs

getLinkHRefs

public java.util.List getLinkHRefs(boolean duplicate)
Get Link hrefs

Parameters:
duplicate - Whether you want duplicate Hrefs
Returns:
A list of Hrefs

getImageSrcs

public java.util.List getImageSrcs(boolean duplicate)
Get Image src attributes

Parameters:
duplicate - Whether you want duplicates
Returns:
A list of src Attributes


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.