Class FileUnzipper
- java.lang.Object
-
- com.atlassian.confluence.util.zip.FileUnzipper
-
-
Constructor Summary
Constructors Constructor Description FileUnzipper(File zipFile, File destDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipEntry[]entries()voidunzip()Unzips all files in the archiveFileunzipFileInArchive(String fileName)Specify a specific file inside the archive to extract
-
-
-
Method Detail
-
unzip
public void unzip() throws IOExceptionUnzips all files in the archive- Specified by:
unzipin interfaceUnzipper- Throws:
ExceptionIOException
-
entries
public ZipEntry[] entries() throws IOException
- Specified by:
entriesin interfaceUnzipper- Throws:
IOException
-
unzipFileInArchive
public File unzipFileInArchive(String fileName) throws IOException
Specify a specific file inside the archive to extract- Specified by:
unzipFileInArchivein interfaceUnzipper- Parameters:
fileName-- Throws:
IOException
-
-