Commit f92e96f4 authored by yanzg's avatar yanzg

修改实例化关系

parent 94cf000f
...@@ -250,6 +250,9 @@ public class HttpHelper { ...@@ -250,6 +250,9 @@ public class HttpHelper {
* @throws IOException * @throws IOException
*/ */
private static BufferedReader readStream(InputStream stream, StringBuilder result, String charset) throws IOException { private static BufferedReader readStream(InputStream stream, StringBuilder result, String charset) throws IOException {
if (stream == null) {
return null;
}
// 定义BufferedReader输入流来读取URL的响应,设置编码方式 // 定义BufferedReader输入流来读取URL的响应,设置编码方式
BufferedReader in = new BufferedReader(new InputStreamReader(stream, charset)); BufferedReader in = new BufferedReader(new InputStreamReader(stream, charset));
String line; String line;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment