Open Source Software for Extracting, Transforming and Loading any kind of data |
|
be.ikan.etl4all.util
|
Field Summary | |
static int |
APPEND
Constant specifying that new data have to be appended to existing sink data. |
static java.lang.String[] |
modeString
Array linking int constants to their meaning |
static int |
OVERWRITE
Constant specifiying that existing sink data have to be overwritten |
static int |
REFRESH
Constant specifying that existing data have to be refreshed. |
Method Summary | |
void |
delete(java.lang.String source)
Delete data from a specified source |
void |
destroy()
Release all allocated resources |
void |
exportData(java.io.BufferedReader reader,
java.lang.String sink,
int mode,
java.lang.String metadata)
Export data in a BufferedReader into a specified data sink |
void |
exportData(java.lang.String details,
java.lang.String sink,
int mode,
java.lang.String metadata)
Export XML data string into a specified data sink |
void |
importData(java.lang.String source,
java.io.PrintWriter writer,
java.lang.String metadata)
Retrieve data as a XML PrintWriter object |
java.lang.String |
importData(java.lang.String source,
java.lang.String metadata)
Retrieve data as an XML string |
void |
init(org.w3c.dom.Element initParams)
Initialize XmlIO |
Field Detail |
public static final int OVERWRITE
public static final int APPEND
public static final int REFRESH
public static final java.lang.String[] modeString
Method Detail |
public void init(org.w3c.dom.Element initParams)
initParams
- Element Element grouping all initialization parameterspublic java.lang.String importData(java.lang.String source, java.lang.String metadata) throws java.lang.Exception
source
- String name of the source of the information to be retrieved.metadata
- String metadata corresponding to the data to be retrieved
java.lang.Exception
public void importData(java.lang.String source, java.io.PrintWriter writer, java.lang.String metadata) throws java.lang.Exception
source
- String name of the source of the information to be retrieved.writer
- PrintWriter writer that XML data has to be written to.metadata
- String metadata for data to be extracted
java.lang.Exception
public void exportData(java.lang.String details, java.lang.String sink, int mode, java.lang.String metadata) throws java.lang.Exception
details
- String XML data to be writtensink
- String name of the sink where the data has to be saved tomode
- int OVERWRITE, APPEND or REFRESHmetadata
- String metadata corresponding to the data to be written
java.lang.Exception
public void exportData(java.io.BufferedReader reader, java.lang.String sink, int mode, java.lang.String metadata) throws java.lang.Exception
reader
- BufferedReader reader containing the XML data to be exportedsink
- String name of the sink where the XML data has to be saved tomode
- int OVERWRITE, APPEND or REFRESHmetadata
- String metadata corresponding to the data to be written
java.lang.Exception
public void delete(java.lang.String source) throws java.lang.Exception
source
- String data source where data have to be deleted for
java.lang.Exception
public void destroy()