|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileLineIndexListener
A "listener interface" for those that want to monitor changes in a
indexed file.
The FileLineIndex allows objects which
implement this interface to be notified when a change is detected
in the length of the indexed file. For example, the TailViewer class uses this facility so that it can
continuously update itself to show the end of a file.
FileLineIndex.addFileLineIndexListener(com.ccg.io.FileLineIndexListener),
FileLineIndex.removeFileLineIndexListener(com.ccg.io.FileLineIndexListener)| Method Summary | |
|---|---|
void |
availableLinesUpdate(FileLineIndex fli,
long olc,
long nlc)
Callback method which indicates that the number of lines in a FileLineIndex object have changed. |
| Method Detail |
|---|
void availableLinesUpdate(FileLineIndex fli,
long olc,
long nlc)
FileLineIndex object have changed.
The FileLineIndex object is designed to
monitor "log" style files (ASCII files which only grow in
size). This call back method is used to monitor when the contents
of the file change (typically grow).
fli - The FileLineIndex object the event originated from -
never null.olc - The original (old) line count (prior to the update).nlc - The new line count that is now available.FileLineIndex
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||