public class SAXCustomizer extends org.xml.sax.helpers.DefaultHandler implements XMLCustomizer
XMLCustomizer
. The
redundant method customizeThisFile
accepts a file or an
InputStream.
Options for the Config-File ppe.conf
&_PORT_CONFIG: -> Key for the connection configuration
http -> protocol
w2.enzim.hu -> domain
80 -> port
/pdbtm/pdbtm/ -> sub-directories
Basic Z3Vlc3Q6Z3Vlc3Q= -> connection type for authorization with key
&_XML_CONFIG: -> Key for XML configuration
pdbtm -> tag type: Constructor and Description |
---|
SAXCustomizer(int database,
Connection con)
Constructs a new SAXCustomizer.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Note: Character maybe run different times for one document pass!
|
void |
closeStreams()
Tries to close all streams connected with the opened files.
|
void |
customizeThisFile(java.io.File xmlFile,
java.lang.String key)
Transforms the pdbtmall.xml from the given file into the pdbtm.mif.
|
void |
customizeThisFile(java.io.InputStream instream,
java.lang.String key)
Transforms the pdbtmall.xml from the given InputStream into the pdbtm.mif.
|
void |
endDocument() |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
startDocument() |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
public SAXCustomizer(int database, Connection con)
public void customizeThisFile(java.io.File xmlFile, java.lang.String key)
customizeThisFile
in interface XMLCustomizer
xmlFile
- The pdbtmall.xml file.key
- The key for identifying the source by the ConfParser
.public void customizeThisFile(java.io.InputStream instream, java.lang.String key)
customizeThisFile
in interface XMLCustomizer
instream
- The InputStream to the pdbtmall.xml.key
- The key for identifying the source by the ConfParser
.public void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void closeStreams()