Class FileIterable

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.String>

    @Deprecated
    public class FileIterable
    extends java.lang.Object
    implements java.lang.Iterable<java.lang.String>
    Deprecated.
    Just use Files.readAllLines(Path, Charset) or lines on Java 8

    Handy class to easily iterate over a file, line by line, using a Java 5 for loop.

    Author:
    Romain Pelisse <[email protected]>
    • Constructor Summary

      Constructors 
      Constructor Description
      FileIterable​(java.io.File file)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void finalize()
      Deprecated.
       
      java.util.Iterator<java.lang.String> iterator()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • FileIterable

        public FileIterable​(java.io.File file)
        Deprecated.
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Deprecated.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • iterator

        public java.util.Iterator<java.lang.String> iterator()
        Deprecated.
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.String>