---
title: "gzip解压"
author: "hunan84229247"
date: "2011-07-26T12:06:04Z"
tags: []
categories: ["编程语言"]
slug: "gzip"
draft: false
lastmod: "2011-07-26T12:06:04Z"
id: 1132950
url: "https://hunan.iteye.com/blog/1132950"
---

GZIPInputStream GIS=new GZIPInputStream(post.getResponseBodyAsStream());   
InputStreamReader isr = new InputStreamReader(GIS,"GBK");   
BufferedReader in2 = new BufferedReader(isr);   
String stringline;   
while ((stringline = in2.readLine()) != null) {   
    sbf.append(stringline+"\\r\\n");   
}   
post.releaseConnection();