java

How To Unzip Large File With Java

import java.io.*; import java.util.zip.*; public class UnZip { final static int BUFFER = 2048; // “/home/admin/Downloads/movies/stockv2@ingram.zip” public String unzipFile(String compressFilePath, String uncompressFolderPath){ String uncompressedFilePath=null; try { BufferedOutputStream dest = null; FileInputStream fis = new FileInputStream(compressFilePath); ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis)); ZipEntry entry; while((entry = zis.getNextEntry()) != null) { uncompressedFilePath=uncompressFolderPath+entry.getName(); System.out.println(“Extracting: ” +entry); int count;… Continue reading How To Unzip Large File With Java