com.atlassian.confluence.util.zip
Class StreamUnzipper

java.lang.Object
  extended by com.atlassian.confluence.util.zip.AbstractUnzipper
      extended by com.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
 
Constructor Summary
StreamUnzipper(java.io.InputStream zipStream, java.io.File destDir)
          Construct a stream unzipper
 
Method Summary
 java.util.zip.ZipEntry[] entries()
           
 void unzip()
           
 java.io.File unzipFileInArchive(java.lang.String fileName)
           
 
Methods inherited from class com.atlassian.confluence.util.zip.AbstractUnzipper
entries, isChildOf, saveEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUnzipper

public StreamUnzipper(java.io.InputStream zipStream,
                      java.io.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 java.io.IOException
Throws:
java.io.IOException

unzipFileInArchive

public java.io.File unzipFileInArchive(java.lang.String fileName)
                                throws java.io.IOException
Throws:
java.io.IOException

entries

public java.util.zip.ZipEntry[] entries()
                                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.