public String InputStrem2String2(InputStream inputStream) throws IOException { InputStreamReader inputStreamReader = new InputStreamReader(inputStream); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); StringBuffer stringBuffer = new StringBuffer(); String s = null; while ((s = bufferedReader.readLine())!=null){ stringBuffer.append(s); } return stringBuffer.toString(); }
处理部分乱码问题
最新推荐文章于 2024-08-08 17:11:41 发布