java IO
StringWriter writer = new StringWriter();
new StringReader(xml)
如果是用URLConnection,记得要设置超时时间,要不然一直占用资源不结束。
con.setConnectTimeout(30000);
con.setReadTimeout(30000);
posted on 2016-04-09 10:32 angelshelter 阅读(140) 评论(0) 编辑 收藏 举报
StringWriter writer = new StringWriter();
new StringReader(xml)
如果是用URLConnection,记得要设置超时时间,要不然一直占用资源不结束。
con.setConnectTimeout(30000);
con.setReadTimeout(30000);
posted on 2016-04-09 10:32 angelshelter 阅读(140) 评论(0) 编辑 收藏 举报