private static class DirectoryFileCollection.Walker extends Object implements FileCollection.Walker
| Modifier and Type | Field and Description |
|---|---|
private File |
currentFile |
private Iterator<File> |
iterator |
| Modifier and Type | Method and Description |
|---|---|
DataLocation |
getCurrentDataLocation()
get a
DataLocation object describing the current file. |
String |
getCurrentName()
get the name of the current file in the iteration.
|
String |
getType()
return the type of the structure that is iterated.
|
InputStream |
openCurrent()
create a new InputStream for the current element of the iteration.
|
boolean |
step()
step to next element in the collection if there is another one.
|
public String getCurrentName()
FileCollection.WalkergetCurrentName in interface FileCollection.Walkerpublic InputStream openCurrent() throws IOException
FileCollection.WalkeropenCurrent in interface FileCollection.WalkerIOException - if the resource cannot be openedpublic boolean step()
FileCollection.Walkerstep in interface FileCollection.Walkerpublic String getType()
FileCollection.WalkergetType in interface FileCollection.Walkerpublic DataLocation getCurrentDataLocation()
FileCollection.WalkerDataLocation object describing the current file.
The dynamic type of the result depends on the implementation in use.getCurrentDataLocation in interface FileCollection.WalkerDataLocation, not null