org.txt2xml.driver
Class SaxDriver

java.lang.Object
  |
  +--org.txt2xml.driver.SaxDriver
Direct Known Subclasses:
DomDriver, JdomDriver, StreamDriver

public class SaxDriver
extends java.lang.Object

Use the XML output from a Processor to drive a SAX ContentHandler.

Author:
Steve Meyfroidt

Field Summary
protected static org.xml.sax.Attributes NULL_ATTRIBUTES
           
protected static java.lang.String ROOT_ELEMENT
           
 
Constructor Summary
SaxDriver()
           
SaxDriver(Processor processor)
           
 
Method Summary
 void generateXmlDocument(java.lang.CharSequence text, org.xml.sax.ContentHandler handler)
          Dump XML to a SAX ContentHandler.
 void setProcessor(Processor processor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_ELEMENT

protected static final java.lang.String ROOT_ELEMENT
See Also:
Constant Field Values

NULL_ATTRIBUTES

protected static final org.xml.sax.Attributes NULL_ATTRIBUTES
Constructor Detail

SaxDriver

public SaxDriver()

SaxDriver

public SaxDriver(Processor processor)
Method Detail

generateXmlDocument

public void generateXmlDocument(java.lang.CharSequence text,
                                org.xml.sax.ContentHandler handler)
                         throws org.xml.sax.SAXException
Dump XML to a SAX ContentHandler.

org.xml.sax.SAXException

setProcessor

public void setProcessor(Processor processor)


Copyright 2002 Steve Meyfroidt. All Rights Reserved.