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
最新推荐文章于 2025-04-30 15:51:06 发布