public class ZipUtils extends Object
Constructor and Description |
---|
ZipUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isZipStream(InputStream in)
check if the
InputStream provided is a zip file |
static String |
normalizeEntryName(ZipEntry aEntry) |
static void |
zipFolder(File srcFolder,
File destZipFile)
While exporting annotation documents, some of the writers generate multiple outputs, e.g.
|
public static boolean isZipStream(InputStream in) throws IOException
InputStream
provided is a zip filein
- the stream.IOException
public static void zipFolder(File srcFolder, File destZipFile) throws IOException
srcFolder
- source folder.destZipFile
- target folder.IOException
- if an I/O error occurs.Copyright © 2012–2017. All rights reserved.