问题:
This question already has an answer here: 这个问题已经在这里有了答案:
Given a string: 给定一个字符串:
String exampleString = "example";
How do I convert it to an InputStream
? 如何将其转换为InputStream
?
解决方案:
参考一: https://stackoom.com/question/3HTm/如何在Java中将字符串转换为InputStream-重复参考二: https://oldbug.net/q/3HTm/How-do-I-convert-a-String-to-an-InputStream-in-Java-duplicate
来源:oschina
链接:https://my.oschina.net/stackoom/blog/3288393