String   str   =   "";//add   your   string   content
InputStream   inputStream   =   new   ByteArrayInputStream(str.getBytes());

相关文章: