public class ZipUtils extends Object
Constructor and Description |
---|
ZipUtils(OutputStream outStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
Unzip(File s) |
static void |
Unzip(String s) |
static void |
unzipFile(ZipInputStream zin,
String s) |
void |
write(String relativePath,
File f) |
void |
write(String relativePath,
String absolutePath) |
static void |
ZipToStream(OutputStream outStream,
Hashtable files) |
public ZipUtils(OutputStream outStream)
public void write(String relativePath, String absolutePath) throws FileNotFoundException, IOException
relativePath
- path name for zip fileabsolutePath
- Absolute path used to load file.FileNotFoundException
IOException
public void write(String relativePath, File f) throws FileNotFoundException, IOException
relativePath
- path name for zip filef
- FileNotFoundException
IOException
public void close() throws IOException
IOException
public static void ZipToStream(OutputStream outStream, Hashtable files) throws FileNotFoundException, IOException
outStream
- files
- FileNotFoundException
IOException
public static void Unzip(File s) throws IOException
IOException
public static void Unzip(String s) throws IOException
IOException
public static void unzipFile(ZipInputStream zin, String s) throws IOException
IOException
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.