private static class DirectoryFileCollection.Walker extends java.lang.Object implements FileCollection.Walker
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
currentFile |
private java.util.Iterator<java.io.File> |
iterator |
| Constructor and Description |
|---|
Walker(java.util.Iterator<java.io.File> iterator) |
| Modifier and Type | Method and Description |
|---|---|
DataLocation |
getCurrentDataLocation()
get a
DataLocation object describing the current file. |
java.lang.String |
getCurrentName()
get the name of the current file in the iteration.
|
java.lang.String |
getType()
return the type of the structure that is iterated.
|
java.io.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.
|
private java.util.Iterator<java.io.File> iterator
private java.io.File currentFile
public java.lang.String getCurrentName()
FileCollection.WalkergetCurrentName in interface FileCollection.Walkerpublic java.io.InputStream openCurrent()
throws java.io.IOException
FileCollection.WalkeropenCurrent in interface FileCollection.Walkerjava.io.IOException - if the resource cannot be openedpublic boolean step()
FileCollection.Walkerstep in interface FileCollection.Walkerpublic java.lang.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