问题描述
InputStreamnewsJsonStr=HttpClientUtils.sendGetAsStream(column.getUrl()+para,httpClient);BufferedReaderreader=newBufferedReader(newInputStreamReader(newGZIPInputStream(newsJsonStr)));这个http返回的流有可能经过GZIP加密了也有可能就是单纯的InputStream,我想做一个判断以免报错,请教下怎么判断获得到的流是那一种
解决方案
解决方案二:
头中指出就可。
解决方案三:
头中指出?怎么写?
解决方案四:
大哥能回复下不
解决方案五:
response.addHeader("Content-Disposition","attachment;filename=""+encodedfileName+".xls"");你是不是说这个啊这个能有用吗
解决方案六:
关注关注关注
解决方案七:
哪位能帮忙解决下
解决方案八:
等。。。。。。。。。。。。等。。。。。。。。。。。
时间: 2024-08-07 01:33:47