public class DBXMLFileWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
ENCODING
Encoding used in the OutputStreamReader.
|
static java.lang.String |
FILEPATH
File path which is prepended to the name of the XML file.
|
Constructor and Description |
---|
DBXMLFileWriter()
Constructs a DBXMLFileWriter object.
|
Modifier and Type | Method and Description |
---|---|
void |
writeFile(java.lang.String[] s)
This method is used to connect to the database and write the content of a table into an XML file.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ENCODING
public static final java.lang.String FILEPATH
public void writeFile(java.lang.String[] s)
DBConnection
to connect to the database.
We use DBSql
to query the database for a table and write the data into an XML file.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] table name; s[5] name of the XML file.