connectionpool
Class ConfigFileParser

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--connectionpool.ConfigFileParser

public class ConfigFileParser
extends org.xml.sax.helpers.DefaultHandler

This Class parses the configuration file. The configuration file should be as per the pool-config.dtd.


Constructor Summary
ConfigFileParser()
           
 
Method Summary
 void endElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName)
          Sax Callback method for parsing
static void main(java.lang.String[] args)
           
 void startElement(java.lang.String namespaceURI, java.lang.String lName, java.lang.String qName, org.xml.sax.Attributes attrs)
          Sax callback method for parsing
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigFileParser

public ConfigFileParser()
Method Detail

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String lName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Sax callback method for parsing
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String sName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Sax Callback method for parsing
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

main

public static void main(java.lang.String[] args)
                 throws ConnectionPoolException