public class DBXMLFileReader
extends java.lang.Object
ImportStats
to connect to the database,
read the data from an XML file (created by ExportStats
) and insert the data in a table.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
ENCODING
Encoding used in the InputStreamReader.
|
static java.lang.String |
FILEPATH
File path which is prepended to the name of the XML file.
|
Constructor and Description |
---|
DBXMLFileReader()
Constructs a DBXMLFileReader object.
|
Modifier and Type | Method and Description |
---|---|
void |
readFile(java.lang.String[] s)
This method is used to connect to the database and write the content of an XML file into a table.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ENCODING
public static final java.lang.String FILEPATH
public void readFile(java.lang.String[] s)
DBConnection
to connect to the database.
We use DBSql
to read the data from an XML file and insert the data into the table.s
- a Vector containing the following info: s[0] database type ; s[1] database name ; s[2] user id; s[3] user password; s[4] name of the XML file.