Package org.openforis.collect.utils
Class ZipFile
- java.lang.Object
-
- org.openforis.collect.utils.ZipFile
-
public class ZipFile extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZipFile.ZipException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZipFileadd(File file, String name)ZipFileadd(InputStream inputStream, String name)voidextractAll(String destinationPath)FilegetOutputFile()
-
-
-
Constructor Detail
-
ZipFile
public ZipFile(File file) throws ZipFile.ZipException
- Throws:
ZipFile.ZipException
-
-
Method Detail
-
add
public ZipFile add(File file, String name) throws ZipFile.ZipException
- Throws:
ZipFile.ZipException
-
add
public ZipFile add(InputStream inputStream, String name) throws ZipFile.ZipException
- Throws:
ZipFile.ZipException
-
extractAll
public void extractAll(String destinationPath) throws ZipFile.ZipException
- Throws:
ZipFile.ZipException
-
getOutputFile
public File getOutputFile()
-
-