public abstract class AbstractUnzipper extends Object implements Unzipper
Constructor and Description |
---|
AbstractUnzipper() |
Modifier and Type | Method and Description |
---|---|
protected ZipEntry[] |
entries(ZipInputStream zis) |
protected File |
saveEntry(InputStream is,
ZipEntry entry)
save the contents of the given inputstream into a file given by the zip entry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
entries, unzip, unzipFileInArchive
protected File destDir
protected File saveEntry(InputStream is, ZipEntry entry) throws IOException
is
- inputstream to read fromentry
- an entry in the zip file to save the inputstream toIOException
- if there are problems writing the fileIllegalArgumentException
- if the zip entry attempts to perform a directory traversal with relative paths
('../') and traverses outside the this#destDir
.protected ZipEntry[] entries(ZipInputStream zis) throws IOException
IOException
Copyright © 2003–2020 Atlassian. All rights reserved.