|
|||||||||
| Home >> All >> cvebrowser >> dictionary >> data >> persistence >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
cvebrowser.dictionary.data.persistence.util
Class XMLImporter

java.lang.Objectcvebrowser.dictionary.data.persistence.util.XMLImporter
- public final class XMLImporter
- extends java.lang.Object
XMLImporter - Imports a CVE browser XML CVE / CAN file into the cve database.
- Version:
- 0.1 - 07/31/2003
| Field Summary | |
private static java.util.ResourceBundle |
_bundle
|
private java.sql.Connection |
_conn
|
private static org.apache.log4j.Logger |
_logger
|
private javax.xml.parsers.SAXParser |
_parser
|
static int |
EXPECTED_PARAMETERS
Number of required expected parameters for the command line |
| Constructor Summary | |
XMLImporter(java.sql.Connection conn_,
org.apache.log4j.Logger logger_)
Parametric constructor |
|
| Method Summary | |
java.lang.Object |
clone()
Make this class uncloneable. |
long |
loadXML(java.io.InputStream stream_)
Import the given file into the database. |
long |
loadXML(java.lang.String fileName_)
Import the given file into the database |
static void |
main(java.lang.String[] argv_)
command line entry point Current command line parameters -s Source XML file -c Configuration file -h Show help Optional parameters: -l : Languaje to use -k : Country to use -h : Show the localized mini help. |
private void |
readObject(java.io.ObjectInputStream in_)
Make this class undeserializeable. |
private void |
writeObject(java.io.ObjectOutputStream out_)
Make this class unserializable. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
EXPECTED_PARAMETERS
public static final int EXPECTED_PARAMETERS
- Number of required expected parameters for the command line
- See Also:
- Constant Field Values
_conn
private java.sql.Connection _conn
_parser
private javax.xml.parsers.SAXParser _parser
_logger
private static org.apache.log4j.Logger _logger
_bundle
private static java.util.ResourceBundle _bundle
| Constructor Detail |
XMLImporter
public XMLImporter(java.sql.Connection conn_, org.apache.log4j.Logger logger_) throws cvebrowser.dictionary.data.persistence.PersistenceException
- Parametric constructor
- Since:
- 0.1
| Method Detail |
main
public static void main(java.lang.String[] argv_) throws java.lang.IllegalArgumentException, cvebrowser.dictionary.data.persistence.PersistenceException
- command line entry point
Current command line parameters
- -s Source XML file
- -c Configuration file
- -h Show help
- -l : Languaje to use
- -k : Country to use
- -h : Show the localized mini help.
- Since:
- 0.1
loadXML
public long loadXML(java.lang.String fileName_) throws java.lang.IllegalArgumentException, cvebrowser.dictionary.data.persistence.PersistenceException
- Import the given file into the database
- Since:
- 0.1
loadXML
public long loadXML(java.io.InputStream stream_) throws java.lang.IllegalArgumentException, cvebrowser.dictionary.data.persistence.PersistenceException
- Import the given file into the database.
- Since:
- 0.1
clone
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Make this class uncloneable. Anyone who wants to use this class must use the constructor.
writeObject
private final void writeObject(java.io.ObjectOutputStream out_) throws java.io.IOException
- Make this class unserializable. Any attempt to serialize will throw an exception.
readObject
private final void readObject(java.io.ObjectInputStream in_) throws java.io.IOException
- Make this class undeserializeable. Throw an exception if this method is ever called.
|
|||||||||
| Home >> All >> cvebrowser >> dictionary >> data >> persistence >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
cvebrowser.dictionary.data.persistence.util.XMLImporter