public static interface FileCollection.Walker
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.
|
boolean step()
java.lang.String getCurrentName() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if the previous call to step returned false.DataLocation getCurrentDataLocation() throws java.util.NoSuchElementException
DataLocation
object describing the current file.
The dynamic type of the result depends on the implementation in use.DataLocation
, not nulljava.util.NoSuchElementException
- if the previous call to step returned false.java.lang.String getType()
java.util.NoSuchElementException
- if the previous call to step returned false.java.io.InputStream openCurrent() throws java.io.IOException, java.util.NoSuchElementException
java.io.IOException
- if the resource cannot be openedjava.util.NoSuchElementException
- if the previous call to step returned false.