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