Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-c

在接收获取服务器响应时,总报警告
Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

   // 响应
   httpEntity = httpResponse.getEntity();
   inputStream = httpEntity.getContent();
   BufferedReader reader =new BufferedReader(new InputStreamReader(inputStream,"GBK"));//就是这句报的警告,建议用下面这句替换掉
   BufferedReader reader =new BufferedReader(new InputStreamReader(inputStream,"GBK"),10*1024);
   String line ="";
   while ((line = reader.readLine()) != null) {
    sb.append(line);
   }

你可能感兴趣的:(Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-c)