|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.htmlparser.filters.LinkStringFilter
This class accepts tags of class LinkTag that contain a link matching a given pattern string. Use this filter to extract LinkTag nodes with URLs containing the desired string.
Field Summary | |
protected boolean |
mCaseSensitive
Flag indicating case sensitive/insensitive search. |
protected java.lang.String |
mPattern
The pattern to search for in the link. |
Constructor Summary | |
LinkStringFilter(java.lang.String pattern)
Creates a LinkStringFilter that accepts LinkTag nodes containing a URL that matches the supplied pattern. |
|
LinkStringFilter(java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String mPattern
protected boolean mCaseSensitive
Constructor Detail |
public LinkStringFilter(java.lang.String pattern)
pattern
- The pattern to match.public LinkStringFilter(java.lang.String pattern, boolean caseSensitive)
pattern
- The pattern to match.caseSensitive
- Specifies case sensitivity for the matching process.Method Detail |
public boolean accept(Node node)
accept
in interface NodeFilter
node
- The node to check.
true
if the node is a link with the pattern.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |