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