? TailerListenerAdapter
java.lang.Object
org.apache.commons.io.input.TailerListenerAdapter
- ????????:
TailerListener
TailerListener
Adapter.- ???????:
- 2.0
-
?????
??? -
????
??????????void
Called each time the Tailer reaches the end of the file.void
This method is called if the tailed file is not found.void
Called if a file rotation is detected.void
Handles an Exception .void
Handles a line from a Tailer.void
The tailer will call this method during construction, giving the listener a method of stopping the tailer.
-
???????
-
TailerListenerAdapter
public TailerListenerAdapter()
-
-
??????
-
init
The tailer will call this method during construction, giving the listener a method of stopping the tailer.- ???:
init
????TailerListener
- ??:
tailer
- the tailer.
-
fileNotFound
This method is called if the tailed file is not found.- ???:
fileNotFound
????TailerListener
-
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.- ???:
fileRotated
????TailerListener
-
handle
Handles a line from a Tailer.- ???:
handle
????TailerListener
- ??:
line
- the line.
-
handle
Handles an Exception .- ???:
handle
????TailerListener
- ??:
ex
- the exception.
-
endOfFileReached
Called each time the Tailer reaches the end of the file. Note: this is called from the tailer thread. Note: a future version of commons-io will pull this method up to the TailerListener interface, for now clients must subclass this class to use this feature.- ???????:
- 2.5
-