org.jasen.core.parsers.handlers
Class ImageTagHandler

java.lang.Object
  extended byorg.jasen.core.parsers.handlers.ImageTagHandler
All Implemented Interfaces:
HTMLTagHandler

public class ImageTagHandler
extends Object
implements HTMLTagHandler

Simply matches if the tag is an image.

Author:
Jason Polites

Field Summary
 
Fields inherited from interface org.jasen.interfaces.HTMLTagHandler
MATCH, NOMATCH
 
Constructor Summary
ImageTagHandler()
           
 
Method Summary
 int handleTag(HTML.Tag tag, AttributeSet attributes, HTMLTagHandlerResult result)
          Returns the status of the tag to the parser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageTagHandler

public ImageTagHandler()
Method Detail

handleTag

public int handleTag(HTML.Tag tag,
                     AttributeSet attributes,
                     HTMLTagHandlerResult result)
Description copied from interface: HTMLTagHandler
Returns the status of the tag to the parser

Specified by:
handleTag in interface HTMLTagHandler
Parameters:
tag - The tag to be handled
attributes - The attributes of the tag
result - The optional result object passed to the handler if more detailed results are required
Returns:
An indication as to whether the handler matched a result. 0 = No Match, 1 = Match