0

是否存在其他方式以便更好地压缩到 gz?

FileOutputStream outFile = new FileOutputStream(outFileName);
GZIPOutputStream out = new GZIPOutputStream(outFile);
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) 
{
    out.write(buf, 0, len);
}
in.close();
out.close();
outFile.close();
4

0 回答 0