java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.rohanclan.ashpool.core.XMLtoResultSetFilter
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader
- public class XMLtoResultSetFilter
- extends org.xml.sax.helpers.XMLFilterImpl
Takes an XML Document in the format
and turns it into a AResultSet object which can be used by most sql programs
as results from a database query
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ars
private AResultSet ars
currentElement
private java.lang.String currentElement
rowmarker
private java.lang.String rowmarker
tablemarker
private java.lang.String tablemarker
currentrow
private int currentrow
ResValue
private java.lang.StringBuffer ResValue
XMLtoResultSetFilter
public XMLtoResultSetFilter(org.xml.sax.XMLReader reader)
- Creates a new instance of XMLtoResultSetFilter
XMLtoResultSetFilter
public XMLtoResultSetFilter(org.xml.sax.XMLReader reader,
AResultSet rs)
- create the object with the desired reader and a pointer to a recordset
getResultSet
public AResultSet getResultSet()
- get the results of the object parse
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Description copied from class:
org.xml.sax.helpers.XMLFilterImpl
- Filter a start document event.
startElement
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attr)
throws org.xml.sax.SAXException
- handle start elements
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- handle element data
endElement
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- handle end of the element