public final class ZIPUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addFile(ZipOutputStream zos,
File file) |
static void |
exportZip(String fileName,
String fileExtension,
ByteArrayOutputStream baos) |
static javax.servlet.http.HttpServletResponse |
getResponseForZip(String fileName,
javax.faces.context.FacesContext context) |
static void |
zip(File newZip,
File... filesToAdd) |
public static void zip(File newZip, File... filesToAdd) throws IOException
IOExceptionpublic static void addFile(ZipOutputStream zos, File file) throws IOException
IOExceptionpublic static void exportZip(String fileName, String fileExtension, ByteArrayOutputStream baos) throws IOException
IOExceptionpublic static javax.servlet.http.HttpServletResponse getResponseForZip(String fileName, javax.faces.context.FacesContext context)
Copyright © 2017 TecSinapse. All rights reserved.