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
Constructor Summary |
StreamUnzipper(java.io.InputStream zipStream,
java.io.File destDir)
Construct a stream unzipper |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamUnzipper
public StreamUnzipper(java.io.InputStream zipStream,
java.io.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 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.