1 | private static final String NEGATE_KEY = "negate";↵ | | 1 | private static final String NEGATE_KEY = "negate";↵
|
|
2 | /** Vector that holds the strings that input lines must contain. */↵ | | 2 | /** Vector that holds the expressions that input lines must contain. */↵
|
3 | private Vector contains = new Vector();↵ | | 3 | private Vector regexps = new Vector();↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Remaining line to be read from this filter, or <code>null</code> if↵ | | 5 | * Remaining line to be read from this filter, or <code>null</code> if↵
|
6 | * the next call to <code>read()</code> should read the original stream↵ | | 6 | * the next call to <code>read()</code> should read the original stream↵
|
7 | * to find the next matching line.↵ | | 7 | * to find the next matching line.↵
|
8 | */↵ | | 8 | */↵
|
9 | private String line = null;↵ | | 9 | private String line = null;↵
|
|
10 | private boolean negate = false;↵ | | 10 | private boolean negate = false;↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * Constructor for "dummy" instances.↵ | | 12 | * Constructor for "dummy" instances.↵
|
13 | *↵ | | 13 | *↵
|
14 | * @see BaseFilterReader#BaseFilterReader()↵ | | 14 | * @see BaseFilterReader#BaseFilterReader()↵
|
15 | */↵ | | 15 | */↵
|
16 | public LineContains() {↵ | | 16 | public LineContainsRegExp() {↵
|
17 | super();↵ | | 17 | super();↵
|
18 | }↵ | | 18 | }↵
|
|
19 | /**↵ | | 19 | /**↵
|
20 | * Creates a new filtered reader.↵ | | 20 | * Creates a new filtered reader.↵
|
21 | *↵ | | 21 | *↵
|
22 | * @param in A Reader object providing the underlying stream.↵ | | 22 | * @param in A Reader object providing the underlying stream.↵
|
23 | * Must not be <code>null</code>.↵ | | 23 | * Must not be <code>null</code>.↵
|
24 | */↵ | | 24 | */↵
|
25 | public LineContains(final Reader in) {↵ | | 25 | public LineContainsRegExp(final Reader in) {↵
|
26 | super(in) | | 26 | super(in)
|