规范package,为发布到maven central repository做准备

This commit is contained in:
Daniel Qian
2014-10-14 16:23:00 +08:00
parent fef9f82b23
commit e9cb1b79de
94 changed files with 466 additions and 449 deletions

View File

@@ -0,0 +1,21 @@
package me.chanjar.weixin.util.xml;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
* @author chanjarster
*/
public class MediaIdMarshaller extends XmlAdapter<String, String> {
@Override
public String marshal(String arg0) throws Exception {
return "<MediaId><![CDATA[" + arg0 + "]]></MediaId>";
}
@Override
public String unmarshal(String arg0) throws Exception {
// do nothing
return arg0;
}
}