commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r922103 - /commons/proper/io/trunk/src/java/org/apache/commons/io/LineIterator.java
Date Fri, 12 Mar 2010 01:21:35 GMT
Author: sebb
Date: Fri Mar 12 01:21:35 2010
New Revision: 922103

URL: http://svn.apache.org/viewvc?rev=922103&view=rev
Log:
Revert r919627

Modified:
    commons/proper/io/trunk/src/java/org/apache/commons/io/LineIterator.java

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/LineIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/LineIterator.java?rev=922103&r1=922102&r2=922103&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/LineIterator.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/LineIterator.java Fri Mar 12 01:21:35
2010
@@ -43,13 +43,14 @@ import java.util.NoSuchElementException;
  *   it.close();
  * }
  * </pre>
+ *
  * @author Niall Pemberton
  * @author Stephen Colebourne
  * @author Sandy McArthur
  * @version $Id$
  * @since Commons IO 1.2
  */
-public class LineIterator implements Iterator<String>, Iterable<String> {
+public class LineIterator implements Iterator<String> {
 
     /** The reader that is being read. */
     private final BufferedReader bufferedReader;
@@ -177,26 +178,4 @@ public class LineIterator implements Ite
         }
     }
 
-    /**
-     * Returns the current instance.
-     * Shares the Reader with the other methods.
-     * <p> 
-     * Sample usage:
-     * </p>
-     * <pre>
-     * LineIterator it = FileUtils.lineIterator(file, "UTF-8");
-     * try {
-     *     for (String line : it) {
-     *         // do something with line
-     *     }
-     * } finally {
-     *     it.close();
-     * }
-     * </pre>
-     * 
-     */
-    public Iterator<String> iterator() {
-        return this;
-    }
-
 }



Mime
View raw message