org.gcube.datatransformation.datatransformationlibrary.programs.applications
Class ExcelToTextTransformer

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.programs.Elm2ElmProgram
      extended by org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgram
          extended by org.gcube.datatransformation.datatransformationlibrary.programs.applications.ExcelToTextTransformer
All Implemented Interfaces:
org.gcube.datatransformation.datatransformationlibrary.programs.Program

public class ExcelToTextTransformer
extends org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgram

Author:
Dimitris Katris, NKUA

Program transforming microsoft excel documents to plain text.


Field Summary
protected static String EXCELMimeType
           
 
Constructor Summary
ExcelToTextTransformer()
           
 
Method Summary
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)
           
 
Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgram
transformDataElement
 
Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.programs.Elm2ElmProgram
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCELMimeType

protected static String EXCELMimeType
Constructor Detail

ExcelToTextTransformer

public ExcelToTextTransformer()
Method Detail

main

public static void main(String[] args)
                 throws Exception
A simple test.

Parameters:
args - The arguments
Throws:
Exception - If the test could not be performed.

transformStream

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
Specified by:
transformStream in class org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgram
Parameters:
content - 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.
Returns:
The transformed content
Throws:
Exception - If the Program is not capable to transform DataElements.
See Also:
Stream2StreamProgram.transformStream(java.io.InputStream, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType)


Copyright © 2013. All Rights Reserved.