Package org.jitterbit.plugin.sdk

Examples of org.jitterbit.plugin.sdk.OutputFile


        token.build(requestDoc, header);
    }
   
    private void writeOutput(InputFile inputFile, PipelinePluginOutput output) throws Exception {
        writeNewRequest(inputFile.getFile());
        OutputFile outFile = OutputFileFactory.newOutputFile(inputFile);
        output.getOutputFiles().add(outFile);
    }
View Full Code Here


                getDefaultLogger(context).fine("The file did not change.");
                outputFiles.add(file.getFile(), file);
            }
            else {
                getDefaultLogger(context).fine("A new file was generated.");
                OutputFile outputFile = createOutputFile(file, newContent, writer);
                outputFiles.add(outputFile);
            }
        }
        getDefaultLogger(context).fine("These are the output files:");
        StringBuilder sb = new StringBuilder();
View Full Code Here

    }

    private void mergeInputFiles(PipelinePluginInput input, PipelinePluginOutput output) throws IOException {
        output.getOutputFiles().clear();
        File targetFile = null;
        OutputFile outputFile = null;
        BufferedWriter outputWriter = null;
        try {
            List<InputFile> inputFiles = getInputFilesInAlphabeticalOrder(input);
            for (InputFile inputFile : inputFiles) {
                if (targetFile == null) {
                    targetFile = createTargetFile(inputFile);
                    outputFile = OutputFileFactory.newOutputFile(targetFile);
                    outputWriter = new BufferedWriter(new FileWriter(targetFile));
                }
                copyFile(inputFile, outputWriter);
                assert outputFile != null;
                outputFile.addOriginFile(inputFile);
            }
            if (outputFile != null) {
                output.getOutputFiles().add(outputFile);
            }
        } finally {
View Full Code Here

                                  PipelinePluginOutput output,
                                  PipelinePluginContext context) throws Exception {
        InputFiles inputFiles = input.getInputFiles();
        OutputFiles outputFiles = output.getOutputFiles();
        for (InputFile inputFile : inputFiles.getFiles()) {
            OutputFile outputFile = handle(inputFile);
            outputFiles.add(outputFile);
        }
        return PluginResult.SUCCESS;
    }
View Full Code Here

TOP

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

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.