还有其他方法可以更好地压缩到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();