public class UrlModifyingVisitor extends NodeVisitor
Constructor and Description |
---|
UrlModifyingVisitor(java.lang.String linkPrefix) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getModifiedResult() |
void |
visitEndTag(Tag tag)
Called for each
Tag visited that is an end tag. |
void |
visitRemarkNode(Remark remarkNode)
Called for each
RemarkNode visited. |
void |
visitStringNode(Text stringNode)
Called for each
StringNode visited. |
void |
visitTag(Tag tag)
Called for each
Tag visited. |
beginParsing, finishedParsing, shouldRecurseChildren, shouldRecurseSelf
public void visitRemarkNode(Remark remarkNode)
NodeVisitor
RemarkNode
visited.visitRemarkNode
in class NodeVisitor
remarkNode
- The remark node being visited.public void visitStringNode(Text stringNode)
NodeVisitor
StringNode
visited.visitStringNode
in class NodeVisitor
stringNode
- The string node being visited.public void visitTag(Tag tag)
NodeVisitor
Tag
visited.visitTag
in class NodeVisitor
tag
- The tag being visited.public void visitEndTag(Tag tag)
NodeVisitor
Tag
visited that is an end tag.visitEndTag
in class NodeVisitor
tag
- The end tag being visited.public java.lang.String getModifiedResult()
HTML Parser is an open source library released under LGPL.