摘要: public class XmlStringer { public XmlStringer() { builder=new StringBuilder(); } private StringBuilder builder; public XmlStringer startNode(String name){ builder.append("<"+name+">"); return this... 阅读全文
posted @ 2011-08-26 19:56 ihou 阅读(456) 评论(0) 推荐(0) 编辑
摘要: private static String inputStream2String ( InputStream in, String encoding ) throws IOException { StringBuilder sb = new StringBuilder(); InputStreamReader is... 阅读全文
posted @ 2011-08-26 14:43 ihou 阅读(229) 评论(0) 推荐(0) 编辑