|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.commands.filters.GrepFilter
Matches lines against a particular string, and discards lines that don't match the string.
Constructor Summary | |
GrepFilter()
|
Method Summary | |
java.util.ArrayList |
filter(java.util.ArrayList lines)
Filters the lines. |
void |
parseArguments(java.lang.String verb,
java.lang.String args)
Parses the arguments to "grep". |
java.lang.String |
toString()
Returns String representation of this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GrepFilter()
Method Detail |
public void parseArguments(java.lang.String verb, java.lang.String args)
parseArguments
in interface CommandFilter
verb
- the command verb (e.g. "grep").args
- the argument string passed to the command,
not including the command verb. Null if no arguments were
passed to the filter.public java.util.ArrayList filter(java.util.ArrayList lines)
filter
in interface CommandFilter
lines
- the event output, broken into lines.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |