Package org.jitterbit.plugin.sdk

Examples of org.jitterbit.plugin.sdk.InputFileReader


    public final PluginResult run(PipelinePluginInput input,
                                  PipelinePluginOutput output,
                                  PipelinePluginContext context) throws Exception {
        InputFiles inputFiles = input.getInputFiles();
        OutputFiles outputFiles = output.getOutputFiles();
        InputFileReader reader = new InputFileReader();
        OutputFileWriter writer = new OutputFileWriter();
        for (InputFile file : inputFiles.getFiles()) {
            getDefaultLogger(context).fine("Now handling the file " + file.getFile());
            String content = reader.read(file);
            String newContent = content.replaceAll(m_regex, m_replacement);
            if (content == newContent) {
                getDefaultLogger(context).fine("The file did not change.");
                outputFiles.add(file.getFile(), file);
            }
View Full Code Here


    private final InputFileReader   m_reader;
    private final OutputFileWriter  m_writer;
   
    public LineFilterPlugin() {
        m_reader = new InputFileReader();
        m_writer = new OutputFileWriter();
    }
View Full Code Here

        m_reader = new InputFileReader();
        m_writer = new OutputFileWriter();
    }
   
    public LineFilterPlugin(String charsetName) {
        m_reader = new InputFileReader(charsetName);
        m_writer = new OutputFileWriter(charsetName);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.plugin.sdk.InputFileReader

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.