How do I get an InputStream from a URL?
for example, I want to take the file at the url wwww.somewebsite.com/a.txt and read it as an InputStream in Java
wwww.somewebsite.com/a.txt
Try:
final InputStream is = new URL("http://wwww.somewebsite.com/a.txt").openStream();