如何将String值转换为InputStreamReader?
String
InputStreamReader
ByteArrayInputStream也可以做到这一点:
InputStream is = new ByteArrayInputStream( myString.getBytes( charset ) );
然后转换为阅读器:
InputStreamReader reader = new InputStreamReader(is);