Package org.openl.util
Class ZipUtils
java.lang.Object
org.openl.util.ZipUtils
A utility class to work with zip files. File names in a zip are in UTF-8.
- Author:
- Yury Molchan
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidPack all files in a directory to a zip file.static booleanstatic voidextractAll(File zipFile, File outputFolder) Extract all files from a zip file into a directory.static voidextractAll(InputStream zippedStream, File outputFolder) Extract all files from a zipped stream into a directory.static URI
-
Method Details
-
extractAll
Extract all files from a zip file into a directory.- Parameters:
zipFile- the input zip fileoutputFolder- the output folder for extracted files- Throws:
IOException
-
extractAll
Extract all files from a zipped stream into a directory.- Parameters:
zippedStream- the zipped input streamoutputFolder- the output folder for extracted files- Throws:
IOException
-
archive
Pack all files in a directory to a zip file.- Throws:
IOException
-
contains
-
toJarURI
-