|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler net.sf.fikin.sql.core.SimpleXmlFile.SimpleSAXParser
public class SimpleXmlFile.SimpleSAXParser
recognizes only SimpleXmlFile.getTag()
tag and extract
its characters if any
nested tags would cause SAXException
created on Dec 17, 2006
Constructor Summary | |
---|---|
SimpleXmlFile.SimpleSAXParser()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
collect all tag's data |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
wait for the tag to end |
protected void |
execute(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
java.lang.String cmd)
execute the given command via SQLPipeElement.execute(String) |
protected java.lang.String |
getValue(java.lang.String uri,
java.lang.String localName,
org.xml.sax.Attributes attr)
lookup the attributes for given attribute and return its value |
protected boolean |
matchTag(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
match the even for a recognized tag |
protected void |
setLogFile(java.lang.String file,
java.lang.Class cls)
set log file of a generic AbstractOutput class |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
wait for the tag to appear |
protected boolean |
toBoolean(java.lang.String flg)
convert "true" or "false" strings to boolean case insensitive comparison |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
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 |
---|
public SimpleXmlFile.SimpleSAXParser()
Method Detail |
---|
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected boolean matchTag(java.lang.String uri, java.lang.String localName, java.lang.String qName)
protected void execute(java.lang.String uri, java.lang.String localName, java.lang.String qName, java.lang.String cmd) throws java.sql.SQLException, org.xml.sax.SAXException
SQLPipeElement.execute(String)
cmd
-
java.sql.SQLException
org.xml.sax.SAXException
protected java.lang.String getValue(java.lang.String uri, java.lang.String localName, org.xml.sax.Attributes attr)
uri
- localName
- attr
-
protected void setLogFile(java.lang.String file, java.lang.Class cls) throws org.xml.sax.SAXException
file
- cls
-
java.io.FileNotFoundException
org.xml.sax.SAXException
protected boolean toBoolean(java.lang.String flg)
flg
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |