try { InputStreamReader inputStreamReader = new InputStreamReader(inputStream, string); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); String s=null; StringBuilder stringBuilder = new StringBuilder(); while ((s=bufferedReader.readLine())!=null){ stringBuilder.append(s); } bufferedReader.close(); Log.d("+++++++++++++bufferedReader.close()",stringBuilder.toString()); return stringBuilder.toString(); } catch (Exception e) { e.printStackTrace(); }
json解析数据流代码
最新推荐文章于 2024-05-30 09:56:11 发布