public class MEncoderWrapper
extends org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgram
| Constructor and Description |
|---|
MEncoderWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Tests MEncoderWrapper program.
|
File |
transformFile(File sourceFile,
List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType,
String targetContentPath) |
transformDataElementpublic static void main(String[] args) throws Exception
args - source and target files.Exception - If conversion could not be performed.public File transformFile(File sourceFile, List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters, org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType, String targetContentPath) throws Exception
transformFile in class org.gcube.datatransformation.datatransformationlibrary.programs.File2FileProgramsourceFile - The source file.programParameters - The parameters of the Program.targetContentType - The ContentType in which the DataElement will be transformed.targetContentPath - The path for the transformed content.Exception - If the Program is not capable to transform DataElements.File2FileProgram.transformFile(java.io.File, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.lang.String)Copyright © 2017. All Rights Reserved.