java-input-stream-horror.md.file

Since I keep forgetting here's how you get a stream from a URL into a BufferedReader (on which you can run readLine()):

BufferedReader result = new BufferedReader(new  InputStreamReader(url.openStream()));

I hate Java's I/O.

java java-io

Edit on github
comments powered by Disqus
Click me