![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
xstream
liweiwei1419
简单、诚实。
展开
-
使用 XStream 读写 XML 文件
使用 XStream 读写 XML 文件导入 gradle 依赖:compile 'com.thoughtworks.xstream:xstream:1.4.8'compile 'dom4j:dom4j:1.6.1'// 写入 xml 文件// http://wenku.baidu.com/link?url=OsNoP52Gl_MGUVmoAks9aS4cHz9_8HfdKwz3yHanK9B1原创 2016-02-23 17:40:42 · 2789 阅读 · 0 评论 -
XStream 学习笔记
使用 Xstream 可以帮助我们完成繁琐的 xml 和 JavaBean 之间的转换。gradle 依赖:compile 'com.thoughtworks.xstream:xstream:1.4.8'compile 'dom4j:dom4j:1.6.1'首先来看一个非常简单的例子: 例1:@Testpublic void test01(){ // 1、创建 XStream 对象原创 2016-02-28 08:19:26 · 886 阅读 · 0 评论