public class ZipFileProcessor extends Object
process(com.agilejava.maven.docbkx.ZipFileProcessor.ZipEntryVisitor) operation accepts a
ZipEntryVisitor that will be notified of every entry
encountered in the zip file. This will eventually allow us to send in a single compound visitor
executing several actions based on the entries encountered.| Modifier and Type | Class and Description |
|---|---|
static interface |
ZipFileProcessor.ZipEntryVisitor
The interface to be implemented by all objects that want to be notified
of entries in a zip file.
|
| Constructor and Description |
|---|
ZipFileProcessor(File file)
Constructs a new instance, wrapping the
file passed in. |
| Modifier and Type | Method and Description |
|---|---|
void |
process(ZipFileProcessor.ZipEntryVisitor visitor)
Processes the contents of the zip file by processing all zip file entries in sequence
and calling
ZipFileProcessor.ZipEntryVisitor.visit(ZipEntry, InputStream) for every
zip file entry encountered. |
public ZipFileProcessor(File file)
file passed in.file - The zip file wrapped by this object.public void process(ZipFileProcessor.ZipEntryVisitor visitor) throws IOException
ZipFileProcessor.ZipEntryVisitor.visit(ZipEntry, InputStream) for every
zip file entry encountered.visitor - The visitor receiving the events.IOException - If it turned out to be impossible to read entries from the zip file passed
in.Copyright © 2006–2015 Wilfred Springer, Cedric Pronzato. All rights reserved.