Package org.zeroturnaround.zip
Class Zips.UnpackingCallback
java.lang.Object
org.zeroturnaround.zip.Zips.UnpackingCallback
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
Zips
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final File
private final Map
<String, ZipEntryTransformer> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
UnpackingCallback
(List<ZipEntryTransformerEntry> entries, File destination) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(InputStream in, ZipEntry zipEntry) Invoked for each entry in a ZIP file.private void
transformIntoFile
(ZipEntryTransformer transformer, InputStream entryIn, ZipEntry zipEntry, File destination)
-
Field Details
-
entryByPath
-
visitedNames
-
destination
-
-
Constructor Details
-
UnpackingCallback
-
-
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
-
transformIntoFile
private void transformIntoFile(ZipEntryTransformer transformer, InputStream entryIn, ZipEntry zipEntry, File destination) throws IOException - Throws:
IOException
-