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 WorkspaceFolder |
unzip(WorkspaceFolder destinationFolder,
InputStream is,
String zipName)
Unzip the specified file into the specified workspace.
|
static WorkspaceFolder |
unzip(WorkspaceFolder destinationFolder,
InputStream is,
String zipName,
boolean replace) |
static WorkspaceFolder |
unzip(WorkspaceFolder destinationFolder,
InputStream is,
String zipName,
boolean replace,
boolean hardreplace) |
static void |
unzip(WorkspaceFolder destinationFolder,
String zipPath) |
static InputStream |
unzipToTmp(InputStream is) |
public static WorkspaceFolder 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 WorkspaceFolder unzip(WorkspaceFolder destinationFolder, InputStream is, String zipName, boolean replace) throws InternalErrorException
parent - inputStream - name - replace - InternalErrorExceptionpublic static WorkspaceFolder unzip(WorkspaceFolder destinationFolder, InputStream is, String zipName, boolean replace, boolean hardreplace) throws InternalErrorException
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 © 2020. All Rights Reserved.