public class FileUnzip extends Object
| Constructor and Description |
|---|
FileUnzip() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
unzipAllFiles(String zippedFolderPath,
String unzippedFolderPath)
Unzip all files of the given folder and put those unzipped files in the
unzippedFolderPath. |
static void |
unzipFile(String compressedFilePath,
String decompressedFilePath)
Unzip the given compressed file and save them in the target file.
|
public static boolean unzipAllFiles(String zippedFolderPath, String unzippedFolderPath) throws IOException
unzippedFolderPath. If
unzippedFolderPath does not exits, it will create a that folder.zippedFolderPath - directory where zipped files are located. All those zipped files will be unzipped.unzippedFolderPath - all the unzipped files will be saved in this directory.IOExceptionpublic static void unzipFile(String compressedFilePath, String decompressedFilePath) throws IOException
compressedFilePath - absolute or relative path to the compressed filedecompressedFilePath - absolute or relative path where decompressed data will be saved.IOException - if any occurs while reading and writing the filesCopyright © 2024. All rights reserved.