我正在使用GZIP压缩来压缩文件。考虑用于解压缩的代码片段
public static void decompress(File compressed, File raw)
throws IOException
{
InputStream in =
new GZIPInputStream(new FileInputStream(compressed));
OutputStream out = new FileOutputStream(raw);
byte[] buffer = new byte[1000];
int len;
while((len = in.read(buffer)) > 0) {
out.write(buffer, 0, len);
}
in.close();
out.close();
}
请告诉我以下内容
答案 0 :(得分:0)
buffer
有多大。)