be.lassi.ui.log
Class LogTail
java.lang.Object
be.lassi.ui.log.LogTail
public class LogTail
- extends java.lang.Object
Like the Unix 'tail' command: reads the end of the log file, and keeps reading
as more information is written to the logfile.
Method Summary |
void |
read(LogParser formatter,
java.lang.String filename)
Constructs a new tail. |
void |
stop()
Sets the indicator to stop reading the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_FILE_SIZE
public static final int INITIAL_FILE_SIZE
- See Also:
- Constant Field Values
REFRESH_TIMEOUT
public static final int REFRESH_TIMEOUT
- See Also:
- Constant Field Values
LogTail
public LogTail()
read
public void read(LogParser formatter,
java.lang.String filename)
throws java.io.IOException
- Constructs a new tail.
- Parameters:
formatter
- the parser to usefilename
- the name of the file to be read
- Throws:
java.io.IOException
stop
public void stop()
- Sets the indicator to stop reading the file.