com.atlassian.confluence.util.zip
Class FileUnzipper
java.lang.Object
com.atlassian.confluence.util.zip.FileUnzipper
- All Implemented Interfaces:
- Unzipper
public class FileUnzipper
- extends Object
- implements Unzipper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUnzipper
public FileUnzipper(File zipFile,
File destDir)
unzip
public void unzip()
throws IOException
- Unzips all files in the archive
- Specified by:
unzip
in interface Unzipper
- Throws:
Exception
IOException
entries
public ZipEntry[] entries()
throws IOException
- Specified by:
entries
in interface Unzipper
- Throws:
IOException
unzipFileInArchive
public File unzipFileInArchive(String fileName)
throws IOException
- Specify a specific file inside the archive to extract
- Specified by:
unzipFileInArchive
in interface Unzipper
- Parameters:
fileName
-
- Throws:
IOException
Copyright © 2003-2010 Atlassian. All Rights Reserved.