Class Zips.CopyingCallback
java.lang.Object
org.zeroturnaround.zip.Zips.CopyingCallback
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
Zips
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ZipEntryTransformer> private final ZipOutputStreamprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCopyingCallback(List<ZipEntryTransformerEntry> transformerEntries, ZipOutputStream out, boolean preserveTimestapms) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(InputStream in, ZipEntry zipEntry) Invoked for each entry in a ZIP file.
-
Field Details
-
entryByPath
-
out
-
visitedNames
-
preserveTimestapms
private final boolean preserveTimestapms
-
-
Constructor Details
-
CopyingCallback
private CopyingCallback(List<ZipEntryTransformerEntry> transformerEntries, ZipOutputStream out, boolean preserveTimestapms)
-
-
Method Details
-
process
Description copied from interface:ZipEntryCallbackInvoked for each entry in a ZIP file.- Specified by:
processin interfaceZipEntryCallback- Parameters:
in- contents of the ZIP entry.zipEntry- ZIP entry.- Throws:
IOException- when any processing exception occurs
-