public class ArchiveUtils extends Object
| Constructor and Description |
|---|
ArchiveUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createJar(File path,
String root,
OutputStream os)
Recursively create JAR archive from directory
|
static void |
createZip(File path,
OutputStream os)
Create ZIP archive from file
|
static void |
createZip(File path,
String root,
OutputStream os)
Recursively create ZIP archive from directory
|
static InputStream |
getInputStreamFromZip(ZipInputStream zis,
String filename)
Read file from ZIP
|
static byte[] |
readFileFromZip(ZipInputStream zis,
String filename)
Read file from ZIP
|
public static void createZip(File path, OutputStream os) throws IOException
IOExceptionpublic static void createZip(File path, String root, OutputStream os) throws IOException
IOExceptionpublic static void createJar(File path, String root, OutputStream os) throws IOException
IOExceptionpublic static byte[] readFileFromZip(ZipInputStream zis, String filename) throws IOException
IOExceptionpublic static InputStream getInputStreamFromZip(ZipInputStream zis, String filename) throws IOException
IOExceptionCopyright © 2018 Open Knowledge Management System S.L.. All rights reserved.