org.htmlparser.visitors

Class TagFindingVisitor


public class TagFindingVisitor
extends NodeVisitor

Constructor Summary

TagFindingVisitor(String[] tagsToBeFound)
TagFindingVisitor(String[] tagsToBeFound, boolean endTagCheck)

Method Summary

int
getEndTagCount(int index)
int
getTagCount(int index)
Node[]
getTags(int index)
void
visitEndTag(Tag tag)
Called for each Tag visited that is an end tag.
void
visitTag(Tag tag)
Called for each Tag visited.

Methods inherited from class org.htmlparser.visitors.NodeVisitor

beginParsing, finishedParsing, shouldRecurseChildren, shouldRecurseSelf, visitEndTag, visitRemarkNode, visitStringNode, visitTag

Constructor Details

TagFindingVisitor

public TagFindingVisitor(String[] tagsToBeFound)

TagFindingVisitor

public TagFindingVisitor(String[] tagsToBeFound,
                         boolean endTagCheck)

Method Details

getEndTagCount

public int getEndTagCount(int index)

getTagCount

public int getTagCount(int index)

getTags

public Node[] getTags(int index)

visitEndTag

public void visitEndTag(Tag tag)
Called for each Tag visited that is an end tag.
Overrides:
visitEndTag in interface NodeVisitor
Parameters:
tag - The end tag being visited.

visitTag

public void visitTag(Tag tag)
Called for each Tag visited.
Overrides:
visitTag in interface NodeVisitor
Parameters:
tag - The tag being visited.

HTML Parser is an open source library released under LGPL. SourceForge.net