摘要: String –> InputStreamInputStrem is = new ByteArrayInputStream(str.getBytes());ByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes());InputStream–>StringinputStream input;StringBuffer out = new StringBuffer(); byte[] b = new byte[4096]; for (int n; (n = input.read(b)) != -1;) .. 阅读全文
posted @ 2011-08-24 16:05 QZB 阅读(1645) 评论(0) 推荐(0) 编辑