|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.commands.filters.HeadFilter
Implements the "head" command: pass a numeric arg, such as "-20", to see that many lines of the output.
Constructor Summary | |
HeadFilter()
|
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 "head". |
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 HeadFilter()
Method Detail |
public void parseArguments(java.lang.String verb, java.lang.String args)
parseArguments
in interface CommandFilter
verb
- the command verb (e.g. "head").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 |