com.smallx.xml.infoset.sax
Class SAXEventGenerator

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.smallx.xml.infoset.sax.SAXEventGenerator
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class SAXEventGenerator
extends org.xml.sax.helpers.DefaultHandler


Constructor Summary
SAXEventGenerator()
          Constructs a SAX-compliant handler for generating events.
 
Method Summary
 void characters(char[] ch, int start, int length)
          A SAX method for handling the document.
 void endDocument()
          A SAX method for handling the document.
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
          A SAX method for handling the document.
 void ignoreableWhitespace(char[] ch, int start, int length)
          A SAX method for handling the document.
 void setDocumentLocator(org.xml.sax.Locator locator)
          Sets the locator to be used for handle entity locations.
 void setItemConstructor(ItemConstructor constructor)
          Sets the context for event construction.
 void setItemDestination(ItemDestination dest)
          Sets the destination that will receive the events.
 void startDocument()
          A SAX method for handling the document.
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          A SAX method for handling the document.
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          A SAX method for handling the document.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXEventGenerator

public SAXEventGenerator()
Constructs a SAX-compliant handler for generating events. The setInfoset and setItemDestination methods must be called in addition to properly initialize this object.

Method Detail

setItemConstructor

public void setItemConstructor(ItemConstructor constructor)
Sets the context for event construction.


setItemDestination

public void setItemDestination(ItemDestination dest)
Sets the destination that will receive the events.


setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Sets the locator to be used for handle entity locations.


startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
A SAX method for handling the document.

Throws:
org.xml.sax.SAXException

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
A SAX method for handling the document.

Throws:
org.xml.sax.SAXException

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
A SAX method for handling the document.

Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
A SAX method for handling the document.

Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
A SAX method for handling the document.

Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
A SAX method for handling the document.


ignoreableWhitespace

public void ignoreableWhitespace(char[] ch,
                                 int start,
                                 int length)
A SAX method for handling the document.