Package net.sourceforge.pmd.util
Class FileIterable
- java.lang.Object
-
- net.sourceforge.pmd.util.FileIterable
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.String>
public class FileIterable extends java.lang.Object implements java.lang.Iterable<java.lang.String>
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
java.util.Iterator<java.lang.String>
iterator()
-