Package org.apache.xalan.transformer
Class TrAXFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.apache.xalan.transformer.TrAXFilter
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,XMLFilter,XMLReader
public class TrAXFilter extends XMLFilterImpl
-
Constructor Summary
Constructors Constructor Description TrAXFilter(Templates templates)Construct an empty XML filter, with no parent. -
Method Summary
Modifier and Type Method Description TransformerImplgetTransformer()Return the Transformer object used for this XML filter.voidparse(String systemId)Parse a document.voidparse(InputSource input)Parse a document.voidsetContentHandler(ContentHandler handler)Set the content event handler.voidsetErrorListener(ErrorListener handler)voidsetParent(XMLReader parent)Set the parent reader.Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
Constructor Details
-
TrAXFilter
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.
-
-
Method Details
-
getTransformer
Return the Transformer object used for this XML filter. -
setParent
Set the parent reader.This is the
XMLReaderfrom 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.
- Specified by:
setParentin interfaceXMLFilter- Overrides:
setParentin classXMLFilterImpl- Parameters:
parent- The parent XML reader.- Throws:
NullPointerException- If the parent is null.- See Also:
XMLFilterImpl.getParent()
-
parse
Parse a document.- Specified by:
parsein interfaceXMLReader- Overrides:
parsein classXMLFilterImpl- Parameters:
input- The input source for the document entity.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.IOException- An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.- See Also:
XMLReader.parse(org.xml.sax.InputSource)
-
parse
Parse a document.- Specified by:
parsein interfaceXMLReader- Overrides:
parsein classXMLFilterImpl- Parameters:
systemId- The system identifier as a fully-qualified URI.- Throws:
SAXException- Any SAX exception, possibly wrapping another exception.IOException- An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.- See Also:
XMLReader.parse(java.lang.String)
-
setContentHandler
Set the content event handler.- Specified by:
setContentHandlerin interfaceXMLReader- Overrides:
setContentHandlerin classXMLFilterImpl- Parameters:
handler- The new content handler.- Throws:
NullPointerException- If the handler is null.- See Also:
XMLReader.setContentHandler(org.xml.sax.ContentHandler)
-
setErrorListener
-