|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.io.input.TailerListenerAdapter
public class TailerListenerAdapter
TailerListener
Adapter.
Constructor Summary | |
---|---|
TailerListenerAdapter()
|
Method Summary | |
---|---|
void |
fileNotFound()
This method is called if the tailed file is not found. |
void |
fileRotated()
Called if a file rotation is detected. |
void |
handle(Exception ex)
Handles an Exception . |
void |
handle(String line)
Handles a line from a Tailer. |
void |
init(Tailer tailer)
The tailer will call this method during construction, giving the listener a method of stopping the tailer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TailerListenerAdapter()
Method Detail |
---|
public void init(Tailer tailer)
init
in interface TailerListener
tailer
- the tailer.public void fileNotFound()
fileNotFound
in interface TailerListener
public void fileRotated()
fileRotated
in interface TailerListener
public void handle(String line)
handle
in interface TailerListener
line
- the line.public void handle(Exception ex)
handle
in interface TailerListener
ex
- the exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |