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

java.lang.Object
  extended by Stream2StreamProgram
      extended by org.gcube.datatransformation.datatransformationlibrary.programs.applications.PPTToTextTransformer

public class PPTToTextTransformer
extends Stream2StreamProgram

Author:
Dimitris Katris, NKUA

Program transforming microsoft ppt documents to plain text.


Constructor Summary
PPTToTextTransformer()
           
 
Method Summary
static void main(java.lang.String[] args)
          A simple test.
 java.io.InputStream transformStream(java.io.InputStream content, ContentType sourceContentType, java.util.List<Parameter> programParameters, ContentType targetContentType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPTToTextTransformer

public PPTToTextTransformer()
Method Detail

main

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

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

transformStream

public java.io.InputStream transformStream(java.io.InputStream content,
                                           ContentType sourceContentType,
                                           java.util.List<Parameter> programParameters,
                                           ContentType targetContentType)
                                    throws java.lang.Exception
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:
java.lang.Exception - If the Program is not capable to transform DataElements.
See Also:
org.gcube.datatransformation.datatransformationlibrary.programs.Stream2StreamProgram#transformStream(java.io.InputStream, org.gcube.datatransformation.datatransformationlibrary.model.ContentType, java.util.List, org.gcube.datatransformation.datatransformationlibrary.model.ContentType)