kristain

博客园 首页 新随笔 联系 订阅 管理

2011年9月16日 #

摘要: 1. String --> InputStreampublic static InputStream String2InputStream(String str) throws IOException{ ByteArrayInputStream stream = new ByteArrayInputStream(str.getBytes()); return stream;} 2. InputStream --> Stringpublic static String inputStream2String(InputStream is) throws IOException{ By. 阅读全文
posted @ 2011-09-16 12:37 kristain 阅读(615) 评论(0) 推荐(0) 编辑