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
Method Summary |
protected void |
finalize()
|
java.util.Iterator<java.lang.String> |
iterator()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileIterable
public FileIterable(java.io.File file)
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<java.lang.String>
Copyright © 2002-2015 InfoEther. All Rights Reserved.