public class UnzipUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
UnzipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
unzip(InputStream is,
OutputStream os)
Unzip the specified stream.
|
static void |
unzip(WorkspaceFolder destinationFolder,
InputStream is,
String zipName)
Unzip the specified file into the specified workspace.
|
static void |
unzip(WorkspaceFolder destinationFolder,
String zipPath) |
static InputStream |
unzipToTmp(InputStream is) |
public static void unzip(WorkspaceFolder destinationFolder, InputStream is, String zipName) throws InternalErrorException
destinationFolder - the destination workspace.is - the zip input stream.zipName - the zip name.IOException - if an error occurs.InternalErrorExceptionpublic static void unzip(WorkspaceFolder destinationFolder, String zipPath) throws IOException, InternalErrorException
IOExceptionInternalErrorExceptionpublic static void unzip(InputStream is, OutputStream os) throws Exception
is - the input stream.os - the destination stream.Exception - if an error occurs.public static InputStream unzipToTmp(InputStream is) throws Exception
is - the zipped input stream.Exception - if an error occurs.Copyright © 2014. All Rights Reserved.