org.brains2b.jdbc
Class ConnectionDocument
java.lang.Object
org.brains2b.jdbc.ConnectionDocument
- All Implemented Interfaces:
- java.lang.Runnable, org.xml.sax.ContentHandler
public class ConnectionDocument
- extends java.lang.Object
- implements org.xml.sax.ContentHandler, java.lang.Runnable
[Short description]
[Long description]
- Version:
- 0.11.1 [14-03-2007]
- Author:
- dennis@brains2b.nl
Field Summary |
static int |
READ
|
static int |
WRITE
|
Method Summary |
void |
addConnection(Connection c)
|
void |
addDriver(Driver d)
|
void |
characters(char[] arg0,
int arg1,
int arg2)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
int |
getAction()
|
java.util.Vector |
getConnections()
|
java.util.Vector |
getDrivers()
|
java.lang.String |
getFilename()
|
void |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
|
void |
processingInstruction(java.lang.String arg0,
java.lang.String arg1)
|
void |
removeConnection(Connection c)
|
void |
removeDriver(Driver d)
|
void |
run()
|
void |
setAction(int i)
|
void |
setConnections(java.util.Vector vector)
|
void |
setDocumentLocator(org.xml.sax.Locator arg0)
|
void |
setDrivers(java.util.Vector vector)
|
void |
setFilename(java.lang.String string)
|
void |
skippedEntity(java.lang.String name)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
void |
writeDocument(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
READ
public static final int READ
- See Also:
- Constant Field Values
WRITE
public static final int WRITE
- See Also:
- Constant Field Values
ConnectionDocument
public ConnectionDocument()
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator arg0)
- Specified by:
setDocumentLocator
in interface org.xml.sax.ContentHandler
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
characters
public void characters(char[] arg0,
int arg1,
int arg2)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws org.xml.sax.SAXException
- Specified by:
ignorableWhitespace
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
processingInstruction
public void processingInstruction(java.lang.String arg0,
java.lang.String arg1)
throws org.xml.sax.SAXException
- Specified by:
processingInstruction
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
getConnections
public java.util.Vector getConnections()
- Returns:
getDrivers
public java.util.Vector getDrivers()
- Returns:
setConnections
public void setConnections(java.util.Vector vector)
- Parameters:
vector
-
setDrivers
public void setDrivers(java.util.Vector vector)
- Parameters:
vector
-
writeDocument
public void writeDocument(java.lang.String fileName)
throws java.io.IOException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getAction
public int getAction()
- Returns:
getFilename
public java.lang.String getFilename()
- Returns:
setAction
public void setAction(int i)
- Parameters:
i
-
setFilename
public void setFilename(java.lang.String string)
- Parameters:
string
-
addDriver
public void addDriver(Driver d)
removeDriver
public void removeDriver(Driver d)
addConnection
public void addConnection(Connection c)
removeConnection
public void removeConnection(Connection c)
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
throws org.xml.sax.SAXException
- Specified by:
endPrefixMapping
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
skippedEntity
public void skippedEntity(java.lang.String name)
throws org.xml.sax.SAXException
- Specified by:
skippedEntity
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws org.xml.sax.SAXException
- Specified by:
startPrefixMapping
in interface org.xml.sax.ContentHandler
- Throws:
org.xml.sax.SAXException