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
IOException
public static void createZip(File path, String root, OutputStream os) throws IOException
IOException
public static void createJar(File path, String root, OutputStream os) throws IOException
IOException
public static byte[] readFileFromZip(ZipInputStream zis, String filename) throws IOException
IOException
public static InputStream getInputStreamFromZip(ZipInputStream zis, String filename) throws IOException
IOException
Copyright © 2018 Open Knowledge Management System S.L.. All rights reserved.