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()
void
unzip()
Unzips all files in the archiveFile
unzipFileInArchive(String fileName)
Specify a specific file inside the archive to extract
-
-
-
Method Detail
-
unzip
public void unzip() throws IOException
Unzips all files in the archive- Specified by:
unzip
in interfaceUnzipper
- Throws:
Exception
IOException
-
entries
public ZipEntry[] entries() throws IOException
- Specified by:
entries
in interfaceUnzipper
- Throws:
IOException
-
unzipFileInArchive
public File unzipFileInArchive(String fileName) throws IOException
Specify a specific file inside the archive to extract- Specified by:
unzipFileInArchive
in interfaceUnzipper
- Parameters:
fileName
-- Throws:
IOException
-
-