摘要: 1. String --> InputStreamInputStream String2InputStream(String str){ ByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); return stream;}2. InputStream --> StringString inputStream2String(InputStream is){ BufferedReader in = new BufferedReader(new InputStreamReader(is)); Str 阅读全文
posted @ 2011-07-08 10:10 cpcpc 阅读(91603) 评论(2) 推荐(3)