|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.commands.filters.WCFilter
Word count.
Constructor Summary | |
WCFilter()
|
Method Summary | |
java.util.ArrayList |
filter(java.util.ArrayList input)
Filters the lines. |
static void |
main(java.lang.String[] args)
Tests it. |
void |
parseArguments(java.lang.String verb,
java.lang.String args)
Parses the arguments to "wc". |
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 WCFilter()
Method Detail |
public void parseArguments(java.lang.String verb, java.lang.String args)
parseArguments
in interface CommandFilter
verb
- the command verb (e.g. "wc").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 input)
filter
in interface CommandFilter
input
- the event input, broken into lines.
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |