org.apache.xalan.transformer
Class TrAXFilter
XMLFilterImpl
org.apache.xalan.transformer.TrAXFilter
public class TrAXFilter
extends XMLFilterImpl
TrAXFilter(Templates templates) - Construct an empty XML filter, with no parent.
|
TrAXFilter
public TrAXFilter(Templates templates)
throws TransformerConfigurationException
Construct an empty XML filter, with no parent.
This filter will have no parent: you must assign a parent
before you start a parse or do any configuration with
setFeature or setProperty.
org.xml.sax.XMLReader.setFeature
, org.xml.sax.XMLReader.setProperty
getTransformer
public TransformerImpl getTransformer()
Return the Transformer object used for this XML filter.
parse
public void parse(InputSource input)
throws org.xml.sax.SAXException,
IOException
Parse a document.
input
- The input source for the document entity.
org.xml.sax.XMLReader.parse(org.xml.sax.InputSource)
parse
public void parse(String systemId)
throws org.xml.sax.SAXException,
IOException
Parse a document.
systemId
- The system identifier as a fully-qualified URI.
org.xml.sax.XMLReader.parse(java.lang.String)
setContentHandler
public void setContentHandler(ContentHandler handler)
Set the content event handler.
handler
- The new content handler.
org.xml.sax.XMLReader.setContentHandler
setErrorListener
public void setErrorListener(ErrorListener handler)
setParent
public void setParent(XMLReader parent)
Set the parent reader.
This is the
XMLReader
from which
this filter will obtain its events and to which it will pass its
configuration requests. The parent may itself be another filter.
If there is no parent reader set, any attempt to parse
or to set or get a feature or property will fail.
parent
- The parent XML reader.
Copyright B) 2006 Apache XML Project. All Rights Reserved.