public interface Filter
Modifier and Type | Interface and Description |
---|---|
static class |
Filter.NextAction |
static class |
Filter.Result |
static class |
Filter.ResultItem |
Modifier and Type | Field and Description |
---|---|
static Filter[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
Filter.Result |
applyFilter(java.lang.String line,
int entireLength)
Filters line by creating an instance of
Filter.Result . |
static final Filter[] EMPTY_ARRAY
Filter.Result applyFilter(java.lang.String line, int entireLength)
Filter.Result
.line
- The line to be filtered. Note that the line must contain a line
separator at the end.entireLength
- The length of the entire text including the line passed for filtration.null
if there was no match. Otherwise, an instance of Filter.Result