File tree Expand file tree Collapse file tree
src/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments