Package com.helger.commons.io.file
Class FileSystemIterator
java.lang.Object
com.helger.commons.collection.iterate.IterableIterator<File>
com.helger.commons.io.file.FileSystemIterator
- All Implemented Interfaces:
ICommonsIterable<File>,IIterableIterator<File>,Iterable<File>,Iterator<File>
Iterate over the content of a single directory. Iteration is not
recursive.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemIterator(File aBaseDir) Constructor.FileSystemIterator(File aBaseDir, String sDirName) Constructor.FileSystemIterator(String sBaseDir) Constructor. -
Method Summary
Methods inherited from class com.helger.commons.collection.iterate.IterableIterator
createEmpty, hasNext, iterator, next, remove, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCountMethods inherited from interface com.helger.commons.collection.iterate.IIterableIterator
withFilter, withMapperMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
FileSystemIterator
Constructor.- Parameters:
sBaseDir- The base directory to iterate. May not benull.
-
FileSystemIterator
Constructor.- Parameters:
aBaseDir- The base directory to iterate. May not benull.
-
FileSystemIterator
Constructor.- Parameters:
aBaseDir- The base directory to iterate. May not benull.sDirName- The directory name relative to the passed base directory. May not benull.
-