0 votes
1 view
in Java by (5.8k points)

How can I transform a String value into an InputStreamReader?

1 Answer

0 votes
by (34.9k points)

ByteArrayInputStream can also help you:

InputStream is = new ByteArrayInputStream( myString.getBytes( charset ) );

...