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
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.util.zip.AbstractUnzipper
destDir
-
-
Constructor Summary
Constructors Constructor Description StreamUnzipper(InputStream zipStream, File destDir)
Construct a stream unzipper
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipEntry[]
entries()
void
unzip()
File
unzipFileInArchive(String fileName)
-
Methods inherited from class com.atlassian.confluence.util.zip.AbstractUnzipper
entries, saveEntry
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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
-
-