How can I transform a String value into an InputStreamReader?
String
InputStreamReader
ByteArrayInputStream also does the trick:
InputStream is = new ByteArrayInputStream( myString.getBytes( charset ) );
Then convert to reader:
InputStreamReader reader = new InputStreamReader(is);
2.1m questions
2.1m answers
60 comments
57.0k users