@@ -0,0 +1,2033 @@
+package main.java.org.bankio.writer;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.IOException;%0D%0Aimport java.text.DateFormat;%0D%0Aimport java.text.SimpleDateFormat;%0D%0Aimport java.util.Date;%0D%0Aimport java.util.HashMap;%0D%0Aimport java.util.List;%0D%0A%0D%0Aimport org.beanio.BeanIOConfigurationException;%0D%0Aimport org.beanio.BeanWriter;%0D%0Aimport org.beanio.StreamFactory;%0D%0A%0D%0Aimport main.java.org.bankio.bean.BeanCfonb120;%0D%0Aimport main.java.org.bankio.bean.BeanCfonb120Additional;%0D%0Aimport main.java.org.bankio.bean.BeanCfonb120Movement;%0D%0Aimport main.java.org.bankio.reader.BeanReaderCfonb;%0D%0A%0D%0Apublic class BeanWriterCfonb %7B%0D%0A%09private static final String CFONB120 = %22cfonb120%22;%0D%0A%09private static final String CFONB120_XML = %22cfonb120.xml%22;%0D%0A%0D%0A%09public static void setBeanCfonb120ToFile(BeanCfonb120 beanCfonb120) throws BeanIOConfigurationException, IOException %7B%0D%0A%09        // create a StreamFactory%0D%0A%09        StreamFactory factory = StreamFactory.newInstance();%0D%0A%09        factory.load(BeanReaderCfonb.class.getClassLoader().getResourceAsStream(CFONB120_XML));%0D%0A%09        %0D%0A%09        DateFormat dateFormat = new SimpleDateFormat(%22yyyyMMddHHmmss%22);%0D%0A%09        Date date = new Date();%0D%0A%09        %0D%0A%09        // set writer mapping file%0D%0A%09        BeanWriter writer = factory.createWriter(CFONB120, new File(CFONB120 + dateFormat.format(date)));%0D%0A%09        %0D%0A%09        writer.write(beanCfonb120.getOldAmount());%0D%0A%09        %0D%0A%09        HashMap%3CInteger, BeanCfonb120Movement%3E beanCfonb120Movements = beanCfonb120.getMovements();%0D%0A%09        for (BeanCfonb120Movement beanCfonb120Movement : beanCfonb120Movements.values()) %7B%0D%0A%09        %09writer.write(beanCfonb120Movement);%0D%0A%09        %09List%3CBeanCfonb120Additional%3E lstBeanCfonb120Additional = beanCfonb120Movement.getAdditionals();%0D%0A%09        %09for (BeanCfonb120Additional beanCfonb120Additional : lstBeanCfonb120Additional) %7B%0D%0A%09        %09%09 writer.write(beanCfonb120Additional);%0D%0A%09%09%09%09%7D%0D%0A%09        %7D%0D%0A%09        %0D%0A%09        writer.write(beanCfonb120.getNewAmount());%0D%0A%09        %0D%0A%09        writer.flush();%0D%0A%09        writer.close();%0D%0A%09    %7D%0D%0A%7D%0D%0A

Add CFONB120 writer