| | |
| | | * @throws FileNotFoundException if the specified file does not exist |
| | | * @throws IllegalArgumentException if the zip file is not a zip file |
| | | */ |
| | | public ZipExtractor(File zipFile, int minRatio, int maxRatio, |
| | | private ZipExtractor(File zipFile, int minRatio, int maxRatio, |
| | | int numberZipEntries, |
| | | Application app) |
| | | throws FileNotFoundException, IllegalArgumentException |
| | |
| | | * @param zipFileName name of the input zip file |
| | | * @param app application to be notified about progress |
| | | */ |
| | | public ZipExtractor(InputStream is, int minRatio, int maxRatio, |
| | | private ZipExtractor(InputStream is, int minRatio, int maxRatio, |
| | | int numberZipEntries, |
| | | String zipFileName, |
| | | Application app) { |
| | |
| | | * @param destination File where the zip file will be extracted |
| | | * @throws ApplicationException if something goes wrong |
| | | */ |
| | | public void extract(String destination) throws ApplicationException { |
| | | private void extract(String destination) throws ApplicationException |
| | | { |
| | | extract(destination, true); |
| | | } |
| | | |
| | |
| | | * directory as 'some_file'. |
| | | * @throws ApplicationException if something goes wrong |
| | | */ |
| | | public void extract(String destDir, boolean removeFirstPath) |
| | | private void extract(String destDir, boolean removeFirstPath) |
| | | throws ApplicationException |
| | | { |
| | | ZipInputStream zipIn = new ZipInputStream(is); |