80,475
社区成员
发帖
与我相关
我的任务
分享
public InputStream getInputStreamFromUrl(String urlStr)
throws MalformedURLException, IOException{
url = new URL(urlStr);
HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
System.out.println("111");
/*InputStream input =*/ urlConn.getInputStream();//抛IOException异常
System.out.println("222");
InputStream input = null;
return input;
}