public abstract class AbstractUnzipper extends Object implements Unzipper
Constructor and Description |
---|
AbstractUnzipper() |
Modifier and Type | Method and Description |
---|---|
protected ZipEntry[] |
entries(ZipInputStream zis) |
boolean |
isChildOf(File destDir,
File target)
Deprecated.
since 5.2.5. Use
ConfluenceFileUtils.isChildOf(java.io.File,
java.io.File) instead |
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
.@Deprecated public boolean isChildOf(File destDir, File target) throws IOException
ConfluenceFileUtils.isChildOf(java.io.File,
java.io.File)
insteadIOException
protected ZipEntry[] entries(ZipInputStream zis) throws IOException
IOException
Copyright © 2003–2017 Atlassian. All rights reserved.