public class ZipGenerator extends Object
| Constructor and Description |
|---|
ZipGenerator(String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBytes(String statedPath,
byte[] content,
boolean omitIfExists) |
void |
addFileName(String statedPath,
String actualPath,
boolean omitIfExists) |
void |
addFiles(String actualDir,
String statedDir,
String ext,
String noExt) |
void |
addFilesFiltered(String actualDir,
String statedDir,
String ext,
String[] noExt) |
void |
addFileSource(String path,
String cnt,
boolean omitIfExists) |
void |
addFolder(String actualDir,
String statedDir,
boolean omitIfExists) |
void |
addFolder(String actualDir,
String statedDir,
boolean omitIfExists,
String noExt) |
void |
addFromZip(String zipFilename) |
void |
addMimeTypeFile(String statedPath,
String actualPath) |
void |
addStream(String statedPath,
InputStream fi,
boolean omitIfExists) |
void |
close() |
public ZipGenerator(String filename) throws FileNotFoundException
FileNotFoundExceptionpublic void close() throws IOException
IOExceptionpublic void addFromZip(String zipFilename) throws IOException
IOExceptionpublic void addFolder(String actualDir, String statedDir, boolean omitIfExists) throws IOException
IOExceptionpublic void addFolder(String actualDir, String statedDir, boolean omitIfExists, String noExt) throws IOException
IOExceptionpublic void addFiles(String actualDir, String statedDir, String ext, String noExt) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic void addFilesFiltered(String actualDir, String statedDir, String ext, String[] noExt) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionpublic void addFileSource(String path, String cnt, boolean omitIfExists) throws IOException
IOExceptionpublic void addFileName(String statedPath, String actualPath, boolean omitIfExists) throws IOException
IOExceptionpublic void addBytes(String statedPath, byte[] content, boolean omitIfExists) throws IOException
IOExceptionpublic void addMimeTypeFile(String statedPath, String actualPath) throws IOException
IOExceptionpublic void addStream(String statedPath, InputStream fi, boolean omitIfExists) throws IOException
IOExceptionCopyright © 2014–2019 University Health Network. All rights reserved.