public interface TransX
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Help reclaim used resources.
|
int |
load(java.io.InputStream in)
Load a dataset.
|
int |
load(java.io.Reader rd)
Load a dataset.
|
int |
load(java.lang.String file)
Load a dataset.
|
int |
load(java.net.URL url)
Load a dataset on a URL.
|
void |
open(java.sql.Connection conn)
Start a data loading session.
|
void |
open(java.lang.String constr, java.lang.String user, java.lang.String pwd)
Start a data loading session.
|
void |
setLoadingMode(int mode)
Set the operation mode on duplicates.
|
void |
setNormalizeLangTag(int casingStyle)
Set the normalization form for the language identifier.
|
void |
setPreserveWhitespace(boolean flag)
Tell the loader to treat whitespaces to be significant.
|
void |
setValidationMode(boolean flag)
Set the validation mode.
|
java.io.Reader |
unload(java.lang.String table, java.lang.String[] columns)
Unload a dataset.
|
void |
unload(java.lang.String table, java.lang.String[] columns, java.io.Writer out)
Unload a dataset.
|
boolean |
validate(java.lang.String file)
Validate a dataset on a file.
|
boolean |
validate(java.net.URL url)
Validate a dataset on a URL.
|
void open(java.lang.String constr,
java.lang.String user,
java.lang.String pwd)
throws java.sql.SQLException
constr - a database url of the form jdbc:Oracle:<driver_type>:@[additional_parameters]user - the database user on whose behalf the connection is being madepwd - the user's passwordjava.sql.SQLExceptionopen(java.lang.String, java.lang.String, java.lang.String), close()void open(java.sql.Connection conn)
constr - a database url of the form jdbc:Oracle:<driver_type>:@[additional_parameters]user - the database user on whose behalf the connection is being madepwd - the user's passwordopen(java.lang.String, java.lang.String, java.lang.String), close()int load(java.lang.String file) throws java.lang.Exception
file - - filename of a DLF formatted documentjava.lang.Exceptionint load(java.io.InputStream in) throws java.lang.Exception
in - - inputstream of a DLF formatted documentjava.lang.Exceptionint load(java.io.Reader rd) throws java.lang.Exception
in - - Reader of a DLF formatted documentjava.lang.Exceptionint load(java.net.URL url) throws java.lang.Exception
url - a URLjava.lang.Exceptionopen(java.lang.String, java.lang.String, java.lang.String)
java.io.Reader unload(java.lang.String table,
java.lang.String[] columns)
throws java.lang.Exception
table - a table namecolumns - column names, means * when nulljava.lang.Exceptionopen(java.lang.String, java.lang.String, java.lang.String), load(java.lang.String)
void unload(java.lang.String table,
java.lang.String[] columns,
java.io.Writer out)
throws java.lang.Exception
table - a table namecolumns - column names, means * when nullout - a Writer to write the dataset in XML tojava.lang.Exceptionopen(java.lang.String, java.lang.String, java.lang.String), load(java.lang.String)
void close()
throws java.sql.SQLException
java.sql.SQLExceptionopen(java.lang.String, java.lang.String, java.lang.String)void setLoadingMode(int mode)
mode - a loading modeLoadingModevoid setNormalizeLangTag(int casingStyle)
The normalize-langtag attribute specifies the form of normalization to be applied to the language identifier. The valid values are as follows:
casingStyle - normalization formLangTagvoid setPreserveWhitespace(boolean flag)
flag - true for exceptions, false otherwise.void setValidationMode(boolean flag)
flag - determines whether the loader should be validatingvalidate(java.lang.String)
boolean validate(java.lang.String file)
throws java.lang.Exception
The instance document does not have to be opened for validation.
file - a file namejava.lang.ExceptionsetValidationMode(boolean), validate(java.lang.String)
boolean validate(java.net.URL url)
throws java.lang.Exception
The instance document does not have to be opened for validation.
url - a URL stringjava.lang.Exceptionvalidate(java.lang.String)