Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xalan.transformer
Class TrAXFilter

    java.lang.Object
      |
      +--org.xml.sax.helpers.XMLFilterImpl
            |
            +--org.apache.xalan.transformer.TrAXFilter

public class TrAXFilter
extends XMLFilterImpl

Constructor Summary
`TrAXFilter(Templates templates)` Construct an empty XML filter, with no parent.

Method Summary
`void` | `parse(InputSource input)` Parse a document.
`void` | `parse(java.lang.String systemId)` Parse a document.
`void` | `setContentHandler(ContentHandler handler)` Set the content event handler.
`void` | `setErrorListener(ErrorListener handler)`
`void` | `setParent(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`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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.

  See Also:
    `XMLReader.setFeature(java.lang.String, boolean)`, `XMLReader.setProperty(java.lang.String, java.lang.Object)`

Method Detail

### 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.

  Parameters:
    `parent` - The parent XML reader.
  Throws:
    java.lang.NullPointerException - If the parent is null.
  Overrides:
    setParent in class XMLFilterImpl

### parse

    public void parse(InputSource input)
               throws SAXException,
                      java.io.IOException

  Parse a document.
  Parameters:
    `input` - The input source for the document entity.
  Throws:
    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.
  Overrides:
    parse in class XMLFilterImpl
  See Also:
    `XMLReader.parse(org.xml.sax.InputSource)`

### parse

    public void parse(java.lang.String systemId)
               throws SAXException,
                      java.io.IOException

  Parse a document.
  Parameters:
    `systemId` - The system identifier as a fully-qualified URI.
  Throws:
    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.
  Overrides:
    parse in class XMLFilterImpl
  See Also:
    `XMLReader.parse(java.lang.String)`

### setContentHandler

    public void setContentHandler(ContentHandler handler)

  Set the content event handler.
  Parameters:
    `resolver` - The new content handler.
  Throws:
    java.lang.NullPointerException - If the handler is null.
  Overrides:
    setContentHandler in class XMLFilterImpl
  See Also:
    `XMLReader.setContentHandler(org.xml.sax.ContentHandler)`

### setErrorListener

    public void setErrorListener(ErrorListener handler)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 Apache XML Project. All Rights Reserved.