org.gcube.datatransformation.datatransformationlibrary.datahandlers
Class IOHandler

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationlibrary.datahandlers.IOHandler

public class IOHandler
extends Object

Author:
Dimitris Katris, NKUA Initializes the DataSource and DataSink classes.

Constructor Summary
IOHandler()
           
 
Method Summary
static ContentTypeEvaluator getContentTypeEvaluator(String evaluatorType)
          Initializes and returns a ContentTypeEvaluator object.
static DataSink getDataSink(Output output)
          Initializes and returns a DataSink object.
static DataSource getDataSource(Input input)
          Initializes and returns a DataSource object.
static void init(String dataHandlersConfigFile)
          Initializes the IOHandler by reading the available data handlers from a configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOHandler

public IOHandler()
Method Detail

init

public static void init(String dataHandlersConfigFile)
                 throws Exception
Initializes the IOHandler by reading the available data handlers from a configuration file.

Parameters:
dataHandlersConfigFile - The configuration file from which the IOHandler will read
Throws:
Exception

getDataSource

public static DataSource getDataSource(Input input)
                                throws Exception
Initializes and returns a DataSource object.

Parameters:
input - The input type, value and parameters
Returns:
The DataSource object.
Throws:
Exception - If an error occurred in initializing the DataSource.

getContentTypeEvaluator

public static ContentTypeEvaluator getContentTypeEvaluator(String evaluatorType)
                                                    throws Exception
Initializes and returns a ContentTypeEvaluator object.

Parameters:
evaluatorType - The evaluator type.
Returns:
The ContentTypeEvaluator object.
Throws:
Exception - If an error occurred in initializing the ContentTypeEvaluator.

getDataSink

public static DataSink getDataSink(Output output)
                            throws Exception
Initializes and returns a DataSink object.

Parameters:
output - The output type, value and parameters
Returns:
The {@link DataSinks object.
Throws:
Exception - If an error occurred in initializing the DataSink.


Copyright © 2013. All Rights Reserved.