Compressing and decompressing large size data in java?
问题 I need to compress/decompress different types of files that are contained in a Folder the size of that folder might be more than 10-11 GB. I used following code but this is taking long time to compress the data. BufferedReader in = new BufferedReader(new FileReader("D:/ziptest/expansion1.MPQ")); BufferedOutputStream out = new BufferedOutputStream( new GZIPOutputStream(new FileOutputStream("test.gz"))); int c; while ((c = in.read()) != -1) out.write(c); in.close(); out.close(); Please suggest