com.atlassian.confluence.util.zip
Class FileUnzipper

java.lang.Object
  extended by com.atlassian.confluence.util.zip.FileUnzipper
All Implemented Interfaces:
Unzipper

public class FileUnzipper
extends Object
implements Unzipper


Constructor Summary
FileUnzipper(File zipFile, File destDir)
           
 
Method Summary
 void unzip()
          Unzips all files in the archive
 File unzipFileInArchive(String fileName)
          Specify a specific file inside the archive to extract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUnzipper

public FileUnzipper(File zipFile,
                    File destDir)
Method Detail

unzip

public void unzip()
           throws Exception
Unzips all files in the archive

Specified by:
unzip in interface Unzipper
Throws:
Exception

unzipFileInArchive

public File unzipFileInArchive(String fileName)
                        throws Exception
Specify a specific file inside the archive to extract

Specified by:
unzipFileInArchive in interface Unzipper
Parameters:
fileName -
Throws:
Exception


Confluence is developed by Atlassian.