|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.jot.logger.JOTFileTailer
public class JOTFileTailer
This is used to "tail" a file (read it from the bottom) this is done tro be fast and not use much memory. This is to be used together with the TailFilter interface The tailfilter interface let you tail only matching lines so this function let you do: A Tail, a Grep, or a combianison of both (Tail | Grep)
| Constructor Summary | |
|---|---|
JOTFileTailer()
Constructor for the FileTailer object |
|
JOTFileTailer(int length)
Constructor for the FileTailer object |
|
JOTFileTailer(int length,
int separator)
Constructor for the FileTailer object |
|
| Method Summary | |
|---|---|
void |
loadFile(java.lang.String file)
This is to be called to set the file to tail. |
java.util.Vector |
tail(int max,
JOTTailFilter filter)
This does the job ! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JOTFileTailer()
public JOTFileTailer(int length)
length - Description of Parameter
public JOTFileTailer(int length,
int separator)
separator - Description of Parameterlength - Description of Parameter| Method Detail |
|---|
public void loadFile(java.lang.String file)
throws java.lang.Exception
file - Description of Parameter
java.lang.Exception - Description of Exception
public java.util.Vector tail(int max,
JOTTailFilter filter)
throws java.lang.Exception
max - Description of Parameterfilter - Description of Parameter
java.lang.Exception - Description of Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||