Package org.zeroturnaround.zip
Class ZipUtil.TransformerZipEntryCallback
java.lang.Object
org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
ZipUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<String, ZipEntryTransformer> private final int
private final ZipOutputStream
-
Constructor Summary
ConstructorsConstructorDescriptionTransformerZipEntryCallback
(List<ZipEntryTransformerEntry> entries, ZipOutputStream out) -
Method Summary
Modifier and TypeMethodDescriptionboolean
found()
void
process
(InputStream in, ZipEntry zipEntry) Invoked for each entry in a ZIP file.
-
Field Details
-
entryByPath
-
entryCount
private final int entryCount -
out
-
names
-
-
Constructor Details
-
TransformerZipEntryCallback
-
-
Method Details
-
process
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:
IOException
- when any processing exception occurs
-
found
public boolean found()- Returns:
true
if at least one entry was replaced.
-