Skip to content

Commit d52d144

Browse files
committed
Revert r919627
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@922103 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0ae502e commit d52d144

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

src/java/org/apache/commons/io/LineIterator.java

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@
4343
* it.close();
4444
* }
4545
* </pre>
46+
*
4647
* @author Niall Pemberton
4748
* @author Stephen Colebourne
4849
* @author Sandy McArthur
4950
* @version $Id$
5051
* @since Commons IO 1.2
5152
*/
52-
public class LineIterator implements Iterator<String>, Iterable<String> {
53+
public class LineIterator implements Iterator<String> {
5354

5455
/** The reader that is being read. */
5556
private final BufferedReader bufferedReader;
@@ -177,26 +178,4 @@ public static void closeQuietly(LineIterator iterator) {
177178
}
178179
}
179180

180-
/**
181-
* Returns the current instance.
182-
* Shares the Reader with the other methods.
183-
* <p>
184-
* Sample usage:
185-
* </p>
186-
* <pre>
187-
* LineIterator it = FileUtils.lineIterator(file, "UTF-8");
188-
* try {
189-
* for (String line : it) {
190-
* // do something with line
191-
* }
192-
* } finally {
193-
* it.close();
194-
* }
195-
* </pre>
196-
*
197-
*/
198-
public Iterator<String> iterator() {
199-
return this;
200-
}
201-
202181
}

0 commit comments

Comments
 (0)