Package org.zeroturnaround.zip
Class ZipUtil.Unpacker
- java.lang.Object
-
- org.zeroturnaround.zip.ZipUtil.Unpacker
-
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
- ZipUtil
private static class ZipUtil.Unpacker extends java.lang.Object implements ZipEntryCallback
Unpacks each ZIP entry.
-
-
Field Summary
Fields Modifier and Type Field Description private NameMappermapperprivate java.io.FileoutputDir
-
Constructor Summary
Constructors Constructor Description Unpacker(java.io.File outputDir, NameMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(java.io.InputStream in, java.util.zip.ZipEntry zipEntry)Invoked for each entry in a ZIP file.
-
-
-
Field Detail
-
outputDir
private final java.io.File outputDir
-
mapper
private final NameMapper mapper
-
-
Constructor Detail
-
Unpacker
public Unpacker(java.io.File outputDir, NameMapper mapper)
-
-
Method Detail
-
process
public void process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry) throws java.io.IOExceptionDescription 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:
java.io.IOException- when any processing exception occurs
-
-