1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17+
1718package org .apache .commons .io .input ;
1819
1920/**
20- * Listener for events from a {@link Tailer}.
21+ * Listens to events from a {@link Tailer}.
2122 *
2223 * @since 2.0
2324 */
2425public interface TailerListener {
2526
2627 /**
27- * This method is called if the tailed file is not found.
28+ * Called if the tailed file is not found.
2829 * <p>
2930 * <strong>Note:</strong> this is called from the tailer thread.
3031 * </p>
@@ -34,37 +35,37 @@ public interface TailerListener {
3435 /**
3536 * Called if a file rotation is detected.
3637 *
37- * This method is called before the file is reopened, and fileNotFound may
38- * be called if the new file has not yet been created.
38+ * This method is called before the file is reopened, and fileNotFound may be called if the new file has not yet been created.
3939 * <p>
40- * <strong>Note:</strong> this is called from the tailer thread.
40+ * <strong>Note:</strong> Called from the tailer thread.
4141 * </p>
4242 */
4343 void fileRotated ();
4444
4545 /**
46- * Handles an Exception.
46+ * Called when an Exception is thrown .
4747 * <p>
48- * <strong>Note:</strong> this is called from the tailer thread.
48+ * <strong>Note:</strong> Called from the tailer thread.
4949 * </p>
50- * @param ex the exception.
50+ *
51+ * @param e the exception.
5152 */
52- void handle (Exception ex );
53+ void handle (Exception e );
5354
5455 /**
55- * Handles a line from a Tailer .
56+ * Called when a line is read .
5657 * <p>
57- * <strong>Note:</strong> this is called from the tailer thread.
58+ * <strong>Note:</strong> Called from the tailer thread.
5859 * </p>
60+ *
5961 * @param line the line.
6062 */
6163 void handle (String line );
6264
6365 /**
64- * The tailer will call this method during construction,
65- * giving the listener a method of stopping the tailer.
66+ * Called during construction, giving the listener a method of stopping the tailer.
67+ *
6668 * @param tailer the tailer.
6769 */
6870 void init (Tailer tailer );
69-
7071}
0 commit comments