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 XMLCustomizerxmlFile - 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 XMLCustomizerinstream - 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.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerpublic 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.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerpublic void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerpublic void endDocument()
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerpublic void closeStreams()