Package org.zeroturnaround.zip
Class ZipUtil.SingleZipEntryCallback
- java.lang.Object
-
- org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
-
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
- ZipUtil
private static class ZipUtil.SingleZipEntryCallback extends java.lang.Object implements ZipEntryCallback
ZipEntryCallback which is only applied to single entry.
-
-
Field Summary
Fields Modifier and Type Field Description private ZipEntryCallback
action
private boolean
found
private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description SingleZipEntryCallback(java.lang.String name, ZipEntryCallback action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
found()
void
process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry)
Invoked for each entry in a ZIP file.
-
-
-
Field Detail
-
name
private final java.lang.String name
-
action
private final ZipEntryCallback action
-
found
private boolean found
-
-
Constructor Detail
-
SingleZipEntryCallback
public SingleZipEntryCallback(java.lang.String name, ZipEntryCallback action)
-
-
Method Detail
-
process
public void process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry) throws java.io.IOException
Description copied from interface:ZipEntryCallback
Invoked for each entry in a ZIP file.- Specified by:
process
in interfaceZipEntryCallback
- Parameters:
in
- contents of the ZIP entry.zipEntry
- ZIP entry.- Throws:
java.io.IOException
- when any processing exception occurs
-
found
public boolean found()
-
-