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