使用
java.net.URL#openStream()正确的URL(包括协议!)。例如
InputStream input = new URL("http://www.somewebsite.com/a.txt").openStream();// ...也可以看看:
- 使用java.net.URLConnection触发和处理HTTP请求

使用
java.net.URL#openStream()正确的URL(包括协议!)。例如
InputStream input = new URL("http://www.somewebsite.com/a.txt").openStream();// ...