Read An HttpURLConnection’s InputStream Line By Line

To read an HttpURLConnection’s InputStream line by line, just like what you do reading a file using a FileReader, you can use the InputStreamReader class as parameter to the BufferedReader class and do the same code you do for reading a file line by line. Take this code for example.

Donations appreciated. Every little $ helps. Or click Google +1.

Display Header Fields Of HttpURLConnection In Java

Here is a short code to list header fields returned after you access a url.

Donations appreciated. Every little $ helps. Or click Google +1.

Related Posts Plugin for WordPress, Blogger...