Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.rohanclan.ashpool.core
Class XMLtoResultSetFilter  view XMLtoResultSetFilter download XMLtoResultSetFilter.java

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended bycom.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


Field Summary
private  AResultSet ars
           
private  java.lang.String currentElement
           
private  int currentrow
           
private  java.lang.StringBuffer ResValue
           
private  java.lang.String rowmarker
           
private  java.lang.String tablemarker
           
 
Fields inherited from class org.xml.sax.helpers.XMLFilterImpl
 
Constructor Summary
XMLtoResultSetFilter(org.xml.sax.XMLReader reader)
          Creates a new instance of XMLtoResultSetFilter
XMLtoResultSetFilter(org.xml.sax.XMLReader reader, AResultSet rs)
          create the object with the desired reader and a pointer to a recordset
 
Method Summary
 void characters(char[] ch, int start, int length)
          handle element data
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          handle end of the element
 AResultSet getResultSet()
          get the results of the object parse
 void startDocument()
          Filter a start document event.
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attr)
          handle start elements
 
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
 

Field Detail

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
Constructor Detail

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

Method Detail

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