@@ -0,0 +1,1042 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0A%0Apackage me.ronghai.sa.format;%0A%0Aimport java.text.FieldPosition;%0Aimport java.text.Format;%0Aimport java.text.ParsePosition;%0A%0A/**%0A *%0A * @author Ronghai Wei %3Cronghai.wei@outlook.com%3E%0A */%0Apublic class GenderFormat extends Format%7B%0A    @Override%0A    public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) %7B%0A        StringBuffer sb = new StringBuffer();%0A        if(%22U%22.equals(obj))%7B%0A            sb.append(%22Unknown%22);%0A        %7Delse if(%22F%22.equals(obj))%7B%0A            sb.append(%22Female%22);%0A        %7Delse%7B%0A            sb.append(%22Male%22);%0A        %7D%0A        toAppendTo.append(sb.toString());%0A        return sb;%0A    %7D%0A%0A    @Override%0A    public Object parseObject(String source, ParsePosition pos) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.%0A    %7D%0A    %0A%7D%0A

add GenderFormat