@@ -123,6 +123,7 @@ public Tailer(File file, TailerListener listener, long delay, boolean end) {
123123 * @param listener the TailerListener to use.
124124 * @param delay the delay between checks of the file for new content in milliseconds.
125125 * @param end Set to true to tail from the end of the file, false to tail from the beginning of the file.
126+ * @return The new tailer
126127 */
127128 public static Tailer create (File file , TailerListener listener , long delay , boolean end ) {
128129 Tailer tailer = new Tailer (file , listener , delay , end );
@@ -138,6 +139,7 @@ public static Tailer create(File file, TailerListener listener, long delay, bool
138139 * @param file the file to follow.
139140 * @param listener the TailerListener to use.
140141 * @param delay the delay between checks of the file for new content in milliseconds.
142+ * @return The new tailer
141143 */
142144 public static Tailer create (File file , TailerListener listener , long delay ) {
143145 return create (file , listener , delay , false );
@@ -149,6 +151,7 @@ public static Tailer create(File file, TailerListener listener, long delay) {
149151 *
150152 * @param file the file to follow.
151153 * @param listener the TailerListener to use.
154+ * @return The new tailer
152155 */
153156 public static Tailer create (File file , TailerListener listener ) {
154157 return create (file , listener , 1000 , false );
@@ -269,6 +272,9 @@ public void stop() {
269272
270273 /**
271274 * Read new lines.
275+ *
276+ * @param reader The file to read
277+ * @return The new position after the lines have been read
272278 * @throws java.io.IOException if an I/O error occurs.
273279 */
274280 private long readLines (RandomAccessFile reader ) throws IOException {
0 commit comments