org.htmlparser.filters
public class LinkStringFilter extends Object implements NodeFilter
Field Summary | |
---|---|
protected boolean | mCaseSensitive
Flag indicating case sensitive/insensitive search. |
protected String | mPattern
The pattern to search for in the link. |
Constructor Summary | |
---|---|
LinkStringFilter(String pattern)
Creates a LinkStringFilter that accepts LinkTag nodes containing
a URL that matches the supplied pattern.
| |
LinkStringFilter(String pattern, boolean caseSensitive)
Creates a LinkStringFilter that accepts LinkTag nodes containing
a URL that matches the supplied pattern. |
Method Summary | |
---|---|
boolean | accept(Node node)
Accept nodes that are a LinkTag and
have a URL that matches the pattern supplied in the constructor. |
Parameters: pattern The pattern to match.
Parameters: pattern The pattern to match. caseSensitive Specifies case sensitivity for the matching process.
Parameters: node The node to check.
Returns: true
if the node is a link with the pattern.
HTML Parser is an open source library released under LGPL. | |