org.apache.xalan.transformer

Class TrAXFilter

public class TrAXFilter extends XMLFilterImpl

Constructor Summary
TrAXFilter(Templates templates)
Construct an empty XML filter, with no parent.
Method Summary
TransformerImplgetTransformer()
Return the Transformer object used for this XML filter.
voidparse(InputSource input)
Parse a document.
voidparse(String systemId)
Parse a document.
voidsetContentHandler(ContentHandler handler)
Set the content event handler.
voidsetErrorListener(ErrorListener handler)
voidsetParent(XMLReader parent)
Set the parent reader.

Constructor Detail

TrAXFilter

public TrAXFilter(Templates templates)
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.

See Also: org.xml.sax.XMLReader#setFeature org.xml.sax.XMLReader#setProperty

Method Detail

getTransformer

public TransformerImpl getTransformer()
Return the Transformer object used for this XML filter.

parse

public void parse(InputSource input)
Parse a document.

Parameters: input The input source for the document entity.

Throws: org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

See Also: org.xml.sax.XMLReader#parse(org.xml.sax.InputSource)

parse

public void parse(String systemId)
Parse a document.

Parameters: systemId The system identifier as a fully-qualified URI.

Throws: org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception. java.io.IOException An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

See Also: org.xml.sax.XMLReader#parse(java.lang.String)

setContentHandler

public void setContentHandler(ContentHandler handler)
Set the content event handler.

Parameters: handler The new content handler.

Throws: java.lang.NullPointerException If the handler is null.

See Also: org.xml.sax.XMLReader#setContentHandler

setErrorListener

public void setErrorListener(ErrorListener handler)

setParent

public void setParent(XMLReader parent)
Set the parent reader.

This is the {@link org.xml.sax.XMLReader 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.

Parameters: parent The parent XML reader.

Throws: java.lang.NullPointerException If the parent is null.

Copyright © 2005 Apache XML Project. All Rights Reserved.