1 Xstream sxtream= new Xstream(new DomDriver("GBK))//防止乱码
2xstream.registerConverter(new callDrirectionConverTer())
public class callDrirectionConverTer impl singleValueConverter{
@overrride
public string tostring(object o){
switch(o.tostring){
case "1":
return "男";
}}
}