Package org.zeroturnaround.zip
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 String
getRootName
(String name) private String
getUnrootedName
(String root, String name) void
process
(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: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
-
getUnrootedName
-
getRootName
-