保存对象如何格式化
ByteArrayOutputStream bao = new ByteArrayOutputStream();
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(bao,
ResourcesPlugin.getEncoding());
Marshaller marshaller = new Marshaller(outputStreamWriter);
marshaller.setEncoding(ResourcesPlugin.getEncoding());
Content content = new Content();
content.setBean(beanValue1);
content.setBean(beanValue2);
marshaller.marshal(content);