org.apache.lenya.util
Class HTMLHandler

java.lang.Object
  extended by javax.swing.text.html.HTMLEditorKit.ParserCallback
      extended by org.apache.lenya.util.HTMLHandler

public class HTMLHandler
extends javax.swing.text.html.HTMLEditorKit.ParserCallback

HTML handler class


Field Summary
 
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
IMPLIED
 
Constructor Summary
HTMLHandler()
          Creates a new HTMLHandler object.
 
Method Summary
 java.util.ArrayList getAHRefs()
          Get a list of a href=
 java.util.ArrayList getAllAHRefs()
          Get a list of all a href=
 java.util.ArrayList getAllImageSrcs()
          Get the list of src attributes for all images
 java.util.ArrayList getAllLinkHRefs()
          Get a list of all links
 java.util.ArrayList getImageSrcs()
          Get the list of src attributes for images
 java.util.ArrayList getLinkHRefs()
          Get a list of links
 void handleSimpleTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attributes, int pos)
          Handle a simple tag
 void handleStartTag(javax.swing.text.html.HTML.Tag tag, javax.swing.text.MutableAttributeSet attributes, int pos)
          Handle the start tag
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback
flush, handleComment, handleEndOfLineString, handleEndTag, handleError, handleText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLHandler

public HTMLHandler()
Creates a new HTMLHandler object.

Method Detail

handleStartTag

public void handleStartTag(javax.swing.text.html.HTML.Tag tag,
                           javax.swing.text.MutableAttributeSet attributes,
                           int pos)
Handle the start tag

Overrides:
handleStartTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback
Parameters:
tag - The tag
attributes - The set of attributes
pos - The position

handleSimpleTag

public void handleSimpleTag(javax.swing.text.html.HTML.Tag tag,
                            javax.swing.text.MutableAttributeSet attributes,
                            int pos)
Handle a simple tag

Overrides:
handleSimpleTag in class javax.swing.text.html.HTMLEditorKit.ParserCallback
Parameters:
tag - The tag
attributes - The set of attributes
pos - The position

getImageSrcs

public java.util.ArrayList getImageSrcs()
Get the list of src attributes for images

Returns:
The list of src attributes

getAllImageSrcs

public java.util.ArrayList getAllImageSrcs()
Get the list of src attributes for all images

Returns:
The list of src attributes

getLinkHRefs

public java.util.ArrayList getLinkHRefs()
Get a list of links

Returns:
The list of links

getAllLinkHRefs

public java.util.ArrayList getAllLinkHRefs()
Get a list of all links

Returns:
The list of links

getAHRefs

public java.util.ArrayList getAHRefs()
Get a list of a href=

Returns:
The list of a href

getAllAHRefs

public java.util.ArrayList getAllAHRefs()
Get a list of all a href=

Returns:
The list of a href


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