private static String streamToString(InputStream is) {
String result = "";
try {
byte[] bytes = new byte[0];
bytes = new byte[is.available()];
is.read(bytes);
result = new String(bytes);
} catch (Exception e) {
}
return result;
}stream转string
输入流转字符串方法
最新推荐文章于 2024-05-23 12:00:14 发布
1348

被折叠的 条评论
为什么被折叠?



