Package org.apache.commons.io.input
Class TailerListenerAdapter
- java.lang.Object
-
- org.apache.commons.io.input.TailerListenerAdapter
-
- All Implemented Interfaces:
TailerListener
public class TailerListenerAdapter extends java.lang.Object implements TailerListener
TailerListenerAdapter.- Since:
- 2.0
- Version:
- $Id: TailerListenerAdapter.java 1304052 2012-03-22 20:55:29Z ggregory $
-
-
Constructor Summary
Constructors Constructor Description TailerListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfileNotFound()This method is called if the tailed file is not found.voidfileRotated()Called if a file rotation is detected.voidhandle(java.lang.Exception ex)Handles an Exception .voidhandle(java.lang.String line)Handles a line from a Tailer.voidinit(Tailer tailer)The tailer will call this method during construction, giving the listener a method of stopping the tailer.
-
-
-
Method Detail
-
init
public void init(Tailer tailer)
The tailer will call this method during construction, giving the listener a method of stopping the tailer.- Specified by:
initin interfaceTailerListener- Parameters:
tailer- the tailer.
-
fileNotFound
public void fileNotFound()
This method is called if the tailed file is not found.- Specified by:
fileNotFoundin interfaceTailerListener
-
fileRotated
public void fileRotated()
Called if a file rotation is detected. This method is called before the file is reopened, and fileNotFound may be called if the new file has not yet been created.- Specified by:
fileRotatedin interfaceTailerListener
-
handle
public void handle(java.lang.String line)
Handles a line from a Tailer.- Specified by:
handlein interfaceTailerListener- Parameters:
line- the line.
-
handle
public void handle(java.lang.Exception ex)
Handles an Exception .- Specified by:
handlein interfaceTailerListener- Parameters:
ex- the exception.
-
-