Package net.sourceforge.pmd.util
Class FileIterable
- java.lang.Object
-
- net.sourceforge.pmd.util.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 useFiles.readAllLines(Path, Charset)
orlines
on Java 8Handy 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.
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
Deprecated.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
iterator
public java.util.Iterator<java.lang.String> iterator()
Deprecated.- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.String>
-
-