com.atlassian.confluence.util.zip
Class StreamUnzipper

java.lang.Object
  extended bycom.atlassian.confluence.util.zip.AbstractUnzipper
      extended bycom.atlassian.confluence.util.zip.StreamUnzipper
All Implemented Interfaces:
Unzipper

public class StreamUnzipper
extends AbstractUnzipper

Stream based ZIP extractor


Field Summary
 
Fields inherited from class com.atlassian.confluence.util.zip.AbstractUnzipper
destDir, log
 
Constructor Summary
StreamUnzipper(InputStream zipStream, File destDir)
          Construct a stream unzipper
 
Method Summary
 void unzip()
           
 File unzipFileInArchive(String fileName)
           
 
Methods inherited from class com.atlassian.confluence.util.zip.AbstractUnzipper
saveEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUnzipper

public StreamUnzipper(InputStream zipStream,
                      File destDir)
Construct a stream unzipper

Parameters:
zipStream - Inputstream to use for ZIP archive reading
destDir - Directory to unpack stream contents
Method Detail

unzip

public void unzip()
           throws Exception
Throws:
Exception

unzipFileInArchive

public File unzipFileInArchive(String fileName)
                        throws Exception
Throws:
Exception


Confluence is developed by Atlassian.