Snippets tagged “inputstreamreader”
2 snippets use this tag.
- How do I read / convert an InputStream into a String in Java?Java
There are several ways to read an InputStream and convert it to a String in Java. One way is to use the BufferedReader and InputStreamReader classes to read the InputStream line by line, and use a StringBuilder to construct the final String:
- Read/Write String from/to a File in AndroidJava
To read and write a string from and to a file in Android, you can use the FileInputStream and FileOutputStream classes along with the InputStreamReader and OutputStreamWriter classes.