class ZipFileCollection.Walker extends Object implements FileCollection.Walker
Modifier and Type | Field and Description |
---|---|
private ZipEntry |
currentEntry |
private Enumeration<? extends ZipEntry> |
enumeration |
private List<String> |
extensions |
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.
|
private Enumeration<? extends ZipEntry> enumeration
private ZipEntry currentEntry
public Walker(String[] extensions)
public String getCurrentName()
FileCollection.Walker
getCurrentName
in interface FileCollection.Walker
public InputStream openCurrent() throws IOException
FileCollection.Walker
openCurrent
in interface FileCollection.Walker
IOException
- if the resource cannot be openedpublic boolean step()
FileCollection.Walker
step
in interface FileCollection.Walker
public String getType()
FileCollection.Walker
getType
in interface FileCollection.Walker
public DataLocation getCurrentDataLocation()
FileCollection.Walker
DataLocation
object describing the current file.
The dynamic type of the result depends on the implementation in use.getCurrentDataLocation
in interface FileCollection.Walker
DataLocation
, not null