public class ZipUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
unzipAndCheckIsFileExist(InputStream packetStream,
String file)
Method to unzip the file in-memeory and search the required file exists
|
static InputStream |
unzipAndGetFile(InputStream packetStream,
String file)
Method to unzip the file in-memeory and search the required file and return
it
|
static void |
unZipFromInputStream(InputStream input,
String desDir)
Method to unzip the file for passed destination path
|
public static InputStream unzipAndGetFile(InputStream packetStream, String file) throws IOException
packetStream - zip file to be unzippedfile - file to search within zip fileIOException - if any error occored while unzipping the filepublic static boolean unzipAndCheckIsFileExist(InputStream packetStream, String file) throws IOException
packetStream - zip file to be unzippedfile - file to search within zip fileIOException - if any error occored while unzipping the filepublic static void unZipFromInputStream(InputStream input, String desDir) throws IOException
input - zip file to be unzippeddesDir - location where to unzip the filesIOException - if any error occurred while unzippingCopyright © 2020. All rights reserved.