Class DBSAXHandler
java.lang.Object
|
+--org.xml.sax.HandlerBase
|
+--oracle.xml.parser.v2.DefaultXMLDocumentHandler
|
+--DBSAXHandler
- public class DBSAXHandler
- extends oracle.xml.parser.v2.DefaultXMLDocumentHandler
A database aware Class implementing callback bethods for the SAX parser to
call when processing the XML stream and generating events
Constructor Summary |
DBSAXHandler(java.sql.Connection conn)
Construct an instance of the handler class |
Method Summary |
void |
characters(char[] cbuf,
int start,
int len)
SAX Handler that is called for each XML text node |
void |
endElement(oracle.xml.parser.v2.NSName name)
SAX Handler that is called at the end of each XML element |
void |
ignorableWhitespace(char[] cbuf,
int start,
int len)
SAX Handler that is called for each XML text node that is Ignorable
white space |
void |
startElement(oracle.xml.parser.v2.NSName name,
oracle.xml.parser.v2.SAXAttrList atts)
SAX Handler that is called at the start of each XML element |
Methods inherited from class oracle.xml.parser.v2.DefaultXMLDocumentHandler |
cDATASection,
comment,
endDoctype,
endDocument,
endElement,
processingInstruction,
setDoctype,
setDocumentLocator,
setError,
setHandler,
setTextDecl,
setXMLDecl,
setXMLSchema,
startDocument,
startElement |
Methods inherited from class org.xml.sax.HandlerBase |
error,
fatalError,
notationDecl,
resolveEntity,
unparsedEntityDecl,
warning |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DBSAXHandler
public DBSAXHandler(java.sql.Connection conn)
- Construct an instance of the handler class
- Parameters:
conn
- the JDBC connection to which information is written
startElement
public void startElement(oracle.xml.parser.v2.NSName name,
oracle.xml.parser.v2.SAXAttrList atts)
throws org.xml.sax.SAXException
- SAX Handler that is called at the start of each XML element
- Overrides:
- startElement in class oracle.xml.parser.v2.DefaultXMLDocumentHandler
characters
public void characters(char[] cbuf,
int start,
int len)
- SAX Handler that is called for each XML text node
- Overrides:
- characters in class oracle.xml.parser.v2.DefaultXMLDocumentHandler
ignorableWhitespace
public void ignorableWhitespace(char[] cbuf,
int start,
int len)
- SAX Handler that is called for each XML text node that is Ignorable
white space
- Overrides:
- ignorableWhitespace in class oracle.xml.parser.v2.DefaultXMLDocumentHandler
endElement
public void endElement(oracle.xml.parser.v2.NSName name)
throws org.xml.sax.SAXException
- SAX Handler that is called at the end of each XML element
- Overrides:
- endElement in class oracle.xml.parser.v2.DefaultXMLDocumentHandler