|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
edu.ucsb.nceas.metacat.DBSAXHandler
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 |
|
DBSAXHandler(java.sql.Connection conn,
java.lang.String action,
java.lang.String docid)
Construct an instance of the handler class |
Method Summary | |
boolean |
atFirstElement()
get the document processing state |
void |
attributeDecl(java.lang.String eName,
java.lang.String aName,
java.lang.String type,
java.lang.String valueDefault,
java.lang.String value)
SAX Handler that receives notification of attribute declarations |
void |
characters(char[] cbuf,
int start,
int len)
SAX Handler that is called for each XML text node |
void |
comment(char[] ch,
int start,
int length)
SAX Handler that receives notification of comments in the DTD |
void |
elementDecl(java.lang.String name,
java.lang.String model)
SAX Handler that receives notification of element declarations |
void |
endCDATA()
SAX Handler that receives notification of the end of CDATA sections |
void |
endDocument()
SAX Handler that receives notification of end of the document |
void |
endDTD()
SAX Handler that receives notification of end of DTD |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
SAX Handler that is called at the end of each XML element |
void |
endEntity(java.lang.String name)
SAX Handler that receives notification of the end of entities |
void |
error(org.xml.sax.SAXParseException exception)
SAX Handler that receives notification of recoverable parsing errors |
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
SAX Handler that receives notification of external entity declarations |
void |
fatalError(org.xml.sax.SAXParseException exception)
SAX Handler that receives notification of fatal parsing errors |
java.lang.String |
getDocname()
get the document name |
void |
ignorableWhitespace(char[] cbuf,
int start,
int len)
SAX Handler that is called for each XML text node that is Ignorable white space |
void |
internalEntityDecl(java.lang.String name,
java.lang.String value)
SAX Handler that receives notification of internal entity declarations |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
SAX Handler called once for each processing instruction found: node that PI may occur before or after the root element. |
void |
startCDATA()
SAX Handler that receives notification of the start of CDATA sections |
void |
startDocument()
SAX Handler that receives notification of beginning of the document |
void |
startDTD(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
SAX Handler that receives notification of DOCTYPE. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
SAX Handler that is called at the start of each XML element |
void |
startEntity(java.lang.String name)
SAX Handler that receives notification of the start of entities |
void |
warning(org.xml.sax.SAXParseException exception)
SAX Handler that receives notification of warnings |
Constructor Detail |
public DBSAXHandler(java.sql.Connection conn)
conn
- the JDBC connection to which information is writtenpublic DBSAXHandler(java.sql.Connection conn, java.lang.String action, java.lang.String docid)
conn
- the JDBC connection to which information is writtenMethod Detail |
public void startDocument() throws org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
public void characters(char[] cbuf, int start, int len)
public void ignorableWhitespace(char[] cbuf, int start, int len)
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
public void startDTD(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
public void endDTD() throws org.xml.sax.SAXException
public void comment(char[] ch, int start, int length) throws org.xml.sax.SAXException
public void startCDATA() throws org.xml.sax.SAXException
public void endCDATA() throws org.xml.sax.SAXException
public void startEntity(java.lang.String name) throws org.xml.sax.SAXException
public void endEntity(java.lang.String name) throws org.xml.sax.SAXException
public void elementDecl(java.lang.String name, java.lang.String model) throws org.xml.sax.SAXException
public void attributeDecl(java.lang.String eName, java.lang.String aName, java.lang.String type, java.lang.String valueDefault, java.lang.String value) throws org.xml.sax.SAXException
public void internalEntityDecl(java.lang.String name, java.lang.String value) throws org.xml.sax.SAXException
public void externalEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
public java.lang.String getDocname()
public boolean atFirstElement()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |