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
 ZipEntry[] entries()
           
 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 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-2013 Atlassian. All Rights Reserved.