Package org.zeroturnaround.zip
Class Zips.UnpackingCallback
- java.lang.Object
-
- org.zeroturnaround.zip.Zips.UnpackingCallback
-
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
- Zips
private static class Zips.UnpackingCallback extends java.lang.Object implements ZipEntryCallback
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
destination
private java.util.Map<java.lang.String,ZipEntryTransformer>
entryByPath
private java.util.Set<java.lang.String>
visitedNames
-
Constructor Summary
Constructors Modifier Constructor Description private
UnpackingCallback(java.util.List<ZipEntryTransformerEntry> entries, java.io.File destination)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry)
Invoked for each entry in a ZIP file.private void
transformIntoFile(ZipEntryTransformer transformer, java.io.InputStream entryIn, java.util.zip.ZipEntry zipEntry, java.io.File destination)
-
-
-
Field Detail
-
entryByPath
private final java.util.Map<java.lang.String,ZipEntryTransformer> entryByPath
-
visitedNames
private final java.util.Set<java.lang.String> visitedNames
-
destination
private final java.io.File destination
-
-
Constructor Detail
-
UnpackingCallback
private UnpackingCallback(java.util.List<ZipEntryTransformerEntry> entries, java.io.File destination)
-
-
Method Detail
-
process
public void process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry) throws java.io.IOException
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:
java.io.IOException
- when any processing exception occurs
-
transformIntoFile
private void transformIntoFile(ZipEntryTransformer transformer, java.io.InputStream entryIn, java.util.zip.ZipEntry zipEntry, java.io.File destination) throws java.io.IOException
- Throws:
java.io.IOException
-
-