class ZipFileCollection.Walker extends java.lang.Object implements FileCollection.Walker
Modifier and Type | Field and Description |
---|---|
private java.util.zip.ZipEntry |
currentEntry |
private java.util.Enumeration<? extends java.util.zip.ZipEntry> |
enumeration |
private java.util.List<java.lang.String> |
extensions |
Constructor and Description |
---|
Walker(java.lang.String[] extensions) |
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.Enumeration<? extends java.util.zip.ZipEntry> enumeration
private java.util.zip.ZipEntry currentEntry
private java.util.List<java.lang.String> extensions
public java.lang.String getCurrentName()
FileCollection.Walker
getCurrentName
in interface FileCollection.Walker
public java.io.InputStream openCurrent() throws java.io.IOException
FileCollection.Walker
openCurrent
in interface FileCollection.Walker
java.io.IOException
- if the resource cannot be openedpublic boolean step()
FileCollection.Walker
step
in interface FileCollection.Walker
public java.lang.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