org.apache.xalan.xsltc.trax

Class TrAXFilter

Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class TrAXFilter
extends XMLFilterImpl

skeleton extension of XMLFilterImpl for now.
Authors:
Santiago Pericas-Geertsen
G. Todd Miller

Constructor Summary

TrAXFilter(Templates templates)

Method Summary

Transformer
getTransformer()
void
parse(String systemId)
Parse a document.
void
parse(InputSource input)
Parse a document.
void
setContentHandler(ContentHandler handler)
Set the content event handler.
void
setErrorListener(ErrorListener handler)

Methods inherited from class org.xml.sax.helpers.XMLFilterImpl

characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning

Constructor Details

TrAXFilter

public TrAXFilter(Templates templates)
            throws TransformerConfigurationException

Method Details

getTransformer

public Transformer getTransformer()

parse

public void parse(String systemId)
            throws SAXException,
                   IOException
Parse a document.
Specified by:
parse in interface XMLReader
Overrides:
parse in interface XMLFilterImpl
Parameters:
systemId - The system identifier as a fully-qualified URI.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

parse

public void parse(InputSource input)
            throws SAXException,
                   IOException
Parse a document.
Specified by:
parse in interface XMLReader
Overrides:
parse in interface XMLFilterImpl
Parameters:
input - The input source for the document entity.
Throws:
SAXException - Any SAX exception, possibly wrapping another exception.

setContentHandler

public void setContentHandler(ContentHandler handler)
Set the content event handler.
Specified by:
setContentHandler in interface XMLReader
Overrides:
setContentHandler in interface XMLFilterImpl
Parameters:

setErrorListener

public void setErrorListener(ErrorListener handler)

Copyright B) 2004 Apache XML Project. All Rights Reserved.