Skip to content

Commit 3c14167

Browse files
author
Niall Pemberton
committed
Javadocs only - fix checkstyle issues
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1004062 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7fd0d3d commit 3c14167

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/java/org/apache/commons/io/input/Tailer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)