public class CreateZip extends Object
| Modifier and Type | Field and Description |
|---|---|
static FileFilter |
JSON_FILE_FILTER |
static FileFilter |
XML_FILE_FILTER |
| Constructor and Description |
|---|
CreateZip() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createZip(String sourceDir,
String formats) |
static File |
lastFileModified(String dir) |
static void |
zipDirectory(String sourceDir,
String zipfile,
String formats) |
public static final FileFilter XML_FILE_FILTER
public static final FileFilter JSON_FILE_FILTER
public static String createZip(String sourceDir, String formats) throws IOException, FileNotFoundException
IOExceptionFileNotFoundExceptionpublic static void zipDirectory(String sourceDir, String zipfile, String formats) throws IOException
IOExceptionCopyright © 2016–2018. All rights reserved.