public class ExcelToTextTransformer
extends org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgram
Program transforming microsoft excel documents to plain text.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EXCELMimeType |
| Constructor and Description |
|---|
ExcelToTextTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
A simple test.
|
InputStream |
transformStream(InputStream content,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType sourceContentType,
List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters,
org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType) |
transformDataElementprotected static String EXCELMimeType
public static void main(String[] args) throws Exception
args - The argumentsException - If the test could not be performed.public InputStream transformStream(InputStream content, org.gcube.datatransformation.datatransformationlibrary.model.ContentType sourceContentType, List<org.gcube.datatransformation.datatransformationlibrary.model.Parameter> programParameters, org.gcube.datatransformation.datatransformationlibrary.model.ContentType targetContentType) throws Exception
transformStream in class org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgramcontent - The content of the source DataElement.sourceContentType - The ContentType of the source DataElement.programParameters - The parameters of the Program.targetContentType - The ContentType in which the DataElement will be transformed.Exception - If the Program is not capable to transform DataElements.Stream2StreamProgram.transformStream(java.io.InputStream, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType)Copyright © 2017. All Rights Reserved.