Package org.apache.commons.io.input
Class TailerListenerAdapter
java.lang.Object
org.apache.commons.io.input.TailerListenerAdapter
- All Implemented Interfaces:
- TailerListener
TailerListener Adapter.- Since:
- 2.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled each time the Tailer reaches the end of the file.voidThis method is called if the tailed file is not found.voidCalled if a file rotation is detected.voidHandles an Exception.voidHandles a line from a Tailer.voidThe tailer will call this method during construction, giving the listener a method of stopping the tailer.
- 
Constructor Details- 
TailerListenerAdapterpublic TailerListenerAdapter()Constructs a new instance.
 
- 
- 
Method Details- 
endOfFileReachedCalled 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.- Since:
- 2.5
 
- 
fileNotFoundThis method is called if the tailed file is not found.- Specified by:
- fileNotFoundin interface- TailerListener
 
- 
fileRotatedCalled 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 interface- TailerListener
 
- 
handleHandles an Exception.- Specified by:
- handlein interface- TailerListener
- Parameters:
- ex- the exception.
 
- 
handleHandles a line from a Tailer.- Specified by:
- handlein interface- TailerListener
- Parameters:
- line- the line.
 
- 
initThe tailer will call this method during construction, giving the listener a method of stopping the tailer.- Specified by:
- initin interface- TailerListener
- Parameters:
- tailer- the tailer.
 
 
-