Class ZipUtil.Unwrapper
java.lang.Object
org.zeroturnaround.zip.ZipUtil.Unwrapper
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
ZipUtil
Unwraps entries excluding a single parent dir. If there are multiple roots
ZipException is thrown.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetRootName(String name) private StringgetUnrootedName(String root, String name) voidprocess(InputStream in, ZipEntry zipEntry) Invoked for each entry in a ZIP file.
-
Field Details
-
outputDir
-
mapper
-
rootDir
-
-
Constructor Details
-
Unwrapper
-
-
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
-
getUnrootedName
-
getRootName
-