Package org.jitterbit.util.file

Examples of org.jitterbit.util.file.FileProducer


    private void exportMappingsImpl(Transformation tf) {
        try {
            List<String> mappings = tf.getMapList();
            Map<String, String> multipleFolders = tf.getRenamedNodes();
            FileProducer fileFactory = new ExportFileProducer(tf, "_mappings.xml");
            MappingsXmlWriter w = new MappingsXmlWriter(mappings, multipleFolders, fileFactory);
            w.write();
        } catch (IOException ex) {
            ErrorLog.log(MappingImporterExporterImpl.class, "Failed to export the mappings: " + ex.getMessage(), ex);
        }
View Full Code Here


    }

    private void exportMultipleFoldersImpl(Transformation tf) {
        try {
            Map<String, String> folders = tf.getRenamedNodes();
            FileProducer fileFactory = new ExportFileProducer(tf, "_multiple_folders.xml");
            MultipleFoldersXmlWriter writer = new MultipleFoldersXmlWriter(folders, fileFactory);
            writer.write();
        } catch (IOException ex) {
            ErrorLog.log(MappingImporterExporterImpl.class, "Failed to export the mappings: " + ex.getMessage(), ex);
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.util.file.FileProducer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.