public class ZipFileCollection extends Object implements FileCollection
Modifier and Type | Class and Description |
---|---|
(package private) class |
ZipFileCollection.Walker |
Modifier and Type | Field and Description |
---|---|
(package private) File |
file |
(package private) ZipFile |
zipFile |
Constructor and Description |
---|
ZipFileCollection(File file) |
Modifier and Type | Method and Description |
---|---|
ZipFileCollection.Walker |
createWalker(String extension)
create a
FileCollection.Walker object that allows to iterate the file
collection. |
ZipFileCollection.Walker |
createWalker(String[] extensions)
create a
FileCollection.Walker object that allows to iterate the file
collection. |
String |
toString() |
public ZipFileCollection(File file)
public ZipFileCollection.Walker createWalker(String[] extensions) throws IOException
FileCollection
FileCollection.Walker
object that allows to iterate the file
collection.
The search can be restricted to files with a certain extension. If this
is not desired, one specifies null for the extension.createWalker
in interface FileCollection
extensions
- file extensions to be considered only. null if all files
are to be considered.IOException
- during opening resourcespublic ZipFileCollection.Walker createWalker(String extension) throws IOException
FileCollection
FileCollection.Walker
object that allows to iterate the file
collection.
The search can be restricted to files with a certain extension. If this
is not desired, one specifies null for the extension.createWalker
in interface FileCollection
extension
- file extension to be considered only. null if all files
are to be considered.IOException
- during opening resources