|
HTML Parser Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.filters.StringFilter
This class accepts all string nodes containing the given string.
| Field Summary | |
protected boolean |
mCaseSensitive
Case sensitive toggle. |
protected Locale |
mLocale
The locale to use converting to uppercase in the case insensitive searches. |
protected String |
mPattern
The string to search for. |
| Constructor Summary | |
StringFilter(String pattern)
Creates a new instance of StringFilter that accepts string nodes containing a certain string. |
|
StringFilter(String pattern,
boolean case_sensitive)
Creates a new instance of StringFilter that accepts string nodes containing a certain string. |
|
StringFilter(String pattern,
boolean case_sensitive,
Locale locale)
Creates a new instance of StringFilter that accepts string nodes containing a certain string. |
|
| Method Summary | |
boolean |
accept(Node node)
Accept string nodes that contain the string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String mPattern
protected boolean mCaseSensitive
protected Locale mLocale
| Constructor Detail |
public StringFilter(String pattern)
pattern - The pattern to search for.
public StringFilter(String pattern,
boolean case_sensitive)
pattern - The pattern to search for.case_sensitive - If true, comparisons are performed
respecting case.
public StringFilter(String pattern,
boolean case_sensitive,
Locale locale)
pattern - The pattern to search for.case_sensitive - If true, comparisons are performed
respecting case.| Method Detail |
public boolean accept(Node node)
accept in interface NodeFilternode - The node to check.
true if the node is to be kept, false
if it is to be discarded.
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||