Overview  Package   Class  Tree  Index 

be.lassi.ui.log
Class LogTail

java.lang.Object
  extended by 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.


Field Summary
static int INITIAL_FILE_SIZE
           
static int REFRESH_TIMEOUT
           
 
Constructor Summary
LogTail()
           
 
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
 

Field Detail

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
Constructor Detail

LogTail

public LogTail()
Method Detail

read

public void read(LogParser formatter,
                 java.lang.String filename)
          throws java.io.IOException
Constructs a new tail.

Parameters:
formatter - the parser to use
filename - the name of the file to be read
Throws:
java.io.IOException

stop

public void stop()
Sets the indicator to stop reading the file.


Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2