JAVA 这段代码啥意思
InputStreamis=entity.getContent();GZIPInputStreamgz=newGZIPInputStream(is);FileOutput...
InputStream is = entity.getContent();
GZIPInputStream gz = new GZIPInputStream(is);
FileOutputStream fos = new FileOutputStream(file.getPath() + "/"+ fileName + ".Client");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
byte[] buffer = new byte[512];
int len = 0;
while ((len = gz.read(buffer)) != -1) {
bos.write(buffer, 0, len);
}
fos.write(bos.toByteArray(), 0, bos.toByteArray().length); 展开
GZIPInputStream gz = new GZIPInputStream(is);
FileOutputStream fos = new FileOutputStream(file.getPath() + "/"+ fileName + ".Client");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
byte[] buffer = new byte[512];
int len = 0;
while ((len = gz.read(buffer)) != -1) {
bos.write(buffer, 0, len);
}
fos.write(bos.toByteArray(), 0, bos.toByteArray().length); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询