摘要:
public class StreamTools { public static String readFromStream(InputStream is) throws Exception { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len = 0; while ((len = is.read(buffer)) != -1) { baos.write... 阅读全文
posted @ 2013-06-12 00:21
Gsdimz
阅读(197)
评论(0)
推荐(0)