|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.searchlibrary.operatorlibrary.IOHandler
public class IOHandler
Initializes the DataSource and DataSink classes.
| Constructor Summary | |
|---|---|
IOHandler()
|
|
| Method Summary | |
|---|---|
static DataSink |
getDataSink(URI inLocator,
String outputType,
String outputValue,
Map<String,String> outputParameters,
gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer stats)
Initializes and returns a DataSink object. |
static DataSource |
getDataSource(String inputType,
String inputValue,
Map<String,String> inputParameters)
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 |
|---|
public IOHandler()
| Method Detail |
|---|
public static void init(String dataHandlersConfigFile)
throws Exception
IOHandler by reading the available data handlers
from a configuration file.
dataHandlersConfigFile - The configuration file from which the IOHandler will
read or null for default config
Exception - If initialization fails
public static DataSource getDataSource(String inputType,
String inputValue,
Map<String,String> inputParameters)
throws Exception
DataSource object.
inputType - The input typeinputValue - The input valueinputParameters - The parameters of the input
DataSource object
Exception - If an error occurred in initializing the DataSource
public static DataSink getDataSink(URI inLocator,
String outputType,
String outputValue,
Map<String,String> outputParameters,
gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer stats)
throws Exception
DataSink object.
inLocator - The input locatoroutputType - The output typeoutputValue - The output valueoutputParameters - The parameters of the outputstats - The statistics container
DataSink object
Exception - If an error occurred in initializing the DataSink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||