|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easycsv.filter.PatternLineFilter
public class PatternLineFilter
A line filter that filters out lines based on a regular expression.
| Constructor Summary | |
|---|---|
PatternLineFilter(java.util.regex.Pattern pattern)
Constructs this line filter with the specified pattern. |
|
PatternLineFilter(java.lang.String pattern)
Constructs this line filter with the specified pattern. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.String line)
Tests whether or not the specified line should be read into the CsvDataStore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternLineFilter(java.util.regex.Pattern pattern)
pattern - The regular expression pattern to be used for filteringpublic PatternLineFilter(java.lang.String pattern)
pattern - The regular expression pattern string to be used for
filtering| Method Detail |
|---|
public boolean accept(java.lang.String line)
accept in interface LineFilterline - The CSV line to be tested
true if and only if line
matches the regular expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||