你的位置:首页 > Java教程

[Java教程]XStream解析


XStream xstream=new XStream();

xstream.autodetectAnnotations(true);

xstream.alias("User",User.class);

(User)xstream.from

对象转化为

XStream xstream=new XStream();

xstream.processAnnotations(User.class);

...

xstream.to