public interface FileCollection
FileCollection fc = ... ; FileCollection.Walker walker = fc.createWalker(".java"); while(walker.step()) { // use the data of current location via walker.getCurrent...() }
Modifier and Type | Interface and Description |
---|---|
static interface |
FileCollection.Walker
A Walker allows to iterate (once and one way) through a FileCollection.
|
Modifier and Type | Method and Description |
---|---|
FileCollection.Walker |
createWalker(java.lang.String extension)
create a
FileCollection.Walker object that allows to iterate the file
collection. |
FileCollection.Walker |
createWalker(java.lang.String[] extensions)
create a
FileCollection.Walker object that allows to iterate the file
collection. |
FileCollection.Walker createWalker(java.lang.String extension) throws java.io.IOException
FileCollection.Walker
object that allows to iterate the file
collection.
The search can be restricted to files with a certain extension. If this
is not desired, one specifies null for the extension.extension
- file extension to be considered only. null if all files
are to be considered.java.io.IOException
- during opening resourcesFileCollection.Walker createWalker(java.lang.String[] extensions) throws java.io.IOException
FileCollection.Walker
object that allows to iterate the file
collection.
The search can be restricted to files with a certain extension. If this
is not desired, one specifies null for the extension.extensions
- file extensions to be considered only. null if all files
are to be considered.java.io.IOException
- during opening resources