Package org.zeroturnaround.zip
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 ZipOutputStream
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CopyingCallback
(List<ZipEntryTransformerEntry> transformerEntries, ZipOutputStream out, boolean preserveTimestapms) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(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: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
-