请问这两块代码是什么意思, 能详细的说下吗,谢谢
xstream = new XStream(new DomDriver()){ @Override protected MapperWrapper wrapMapper(MapperWrapper next) { return new MapperWrapper(next) { @SuppressWarnings("rawtypes") @Override public boolean shouldSerializeMember(Class definedIn, String fieldName) { if (definedIn == Object.class) { return false; } return super.shouldSerializeMember(definedIn, fieldName); } }; } };
没用过
XStream
,看样子是个xml解析器?一周热门 更多>