fi.hut.tml.xsmiles.mlfc.xslfo.apps
Class DocumentReader2

java.lang.Object
  extended byorg.apache.fop.tools.DocumentReader
      extended byfi.hut.tml.xsmiles.mlfc.xslfo.apps.DocumentReader2
All Implemented Interfaces:
org.xml.sax.XMLReader

public class DocumentReader2
extends org.apache.fop.tools.DocumentReader
implements org.xml.sax.XMLReader

This presents a DOM as an XMLReader to make it easy to use a Document with a SAX-based implementation.

Author:
Kelly A Campbell

Field Summary
protected static org.w3c.dom.Node cNode
           
protected  org.w3c.dom.Node currentNode
          X-Smiles addition This static kludge is needed because the form elements need access to the DOM node
 
Constructor Summary
DocumentReader2()
           
 
Method Summary
 org.xml.sax.ContentHandler getContentHandler()
           
static org.w3c.dom.Node getCurrentNode()
           
 void parse(org.xml.sax.InputSource input)
           
 void setContentHandler(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class org.apache.fop.tools.DocumentReader
getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.XMLReader
getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty
 

Field Detail

currentNode

protected org.w3c.dom.Node currentNode
X-Smiles addition This static kludge is needed because the form elements need access to the DOM node


cNode

protected static org.w3c.dom.Node cNode
Constructor Detail

DocumentReader2

public DocumentReader2()
Method Detail

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler handler)
Specified by:
setContentHandler in interface org.xml.sax.XMLReader

getContentHandler

public org.xml.sax.ContentHandler getContentHandler()
Specified by:
getContentHandler in interface org.xml.sax.XMLReader

getCurrentNode

public static org.w3c.dom.Node getCurrentNode()

parse

public void parse(org.xml.sax.InputSource input)
           throws java.io.IOException,
                  org.xml.sax.SAXException
Specified by:
parse in interface org.xml.sax.XMLReader
Throws:
java.io.IOException
org.xml.sax.SAXException


X-Smiles 1.2