gzip解压

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();

你可能感兴趣的:(GZip)