com.atlassian.confluence.util.zip
Class StreamUnzipper
java.lang.Object
com.atlassian.confluence.util.zip.AbstractUnzipper
com.atlassian.confluence.util.zip.StreamUnzipper
- All Implemented Interfaces:
- Unzipper
public class StreamUnzipper
- extends AbstractUnzipper
Stream based ZIP extractor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamUnzipper
public StreamUnzipper(InputStream zipStream,
File destDir)
- Construct a stream unzipper
- Parameters:
zipStream
- Inputstream to use for ZIP archive readingdestDir
- Directory to unpack stream contents
unzip
public void unzip()
throws IOException
- Throws:
IOException
unzipFileInArchive
public File unzipFileInArchive(String fileName)
throws IOException
- Throws:
IOException
entries
public ZipEntry[] entries()
throws IOException
- Throws:
IOException