public class ZipUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ZipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
zip(File input,
File output,
String entryName)
Zip the file content.
|
static File |
zipAquaMapsItem(AquaMapsItem aquaMapsItem) |
static File |
zipDocument(Document document)
Zip the document into a tmp zip file.
|
static File |
zipFolder(WorkspaceFolder folder)
Zip the folder content into a tmp zip file.
|
static File |
zipTimeSeries(TimeSeries ts) |
protected static File |
zipWorkspaceItem(WorkspaceItem workspaceItem) |
public static File zipFolder(WorkspaceFolder folder) throws IOException, InternalErrorException
folder - the folder to be compressed.IOException - if an error occurs.InternalErrorException - if an error occurs.public static File zipDocument(Document document) throws IOException, InternalErrorException
document - the document to compress.IOException - if an error occurs.InternalErrorException - if an error occurs.public static File zipTimeSeries(TimeSeries ts) throws IOException, InternalErrorException
ts - the time series to zip.IOException - if an error occurs.InternalErrorException - if an error occurs.public static File zipAquaMapsItem(AquaMapsItem aquaMapsItem) throws IOException, InternalErrorException
aquaMapsItem - the item to zip.IOException - if an error occurs.InternalErrorException - if an error occurs.protected static File zipWorkspaceItem(WorkspaceItem workspaceItem) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionpublic static void zip(File input, File output, String entryName) throws IOException
input - the input file content.output - the output file.entryName - the zip entry name.IOException - if an error occurs.Copyright © 2015. All Rights Reserved.