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.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *