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.

Related Posts Plugin for WordPress, Blogger...