|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl org.apache.xalan.transformer.TrAXFilter
public class TrAXFilter
Field Summary | |
---|---|
private javax.xml.transform.Templates |
m_templates
|
private TransformerImpl |
m_transformer
|
Constructor Summary | |
---|---|
TrAXFilter(javax.xml.transform.Templates templates)
Construct an empty XML filter, with no parent. |
Method Summary | |
---|---|
TransformerImpl |
getTransformer()
Return the Transformer object used for this XML filter. |
void |
parse(org.xml.sax.InputSource input)
Parse a document. |
void |
parse(java.lang.String systemId)
Parse a document. |
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Set the content event handler. |
void |
setErrorListener(javax.xml.transform.ErrorListener handler)
|
void |
setParent(org.xml.sax.XMLReader parent)
Set the parent reader. |
private void |
setupParse()
Set up before a parse. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.xml.transform.Templates m_templates
private TransformerImpl m_transformer
Constructor Detail |
---|
public TrAXFilter(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
This filter will have no parent: you must assign a parent before you start a parse or do any configuration with setFeature or setProperty.
javax.xml.transform.TransformerConfigurationException
XMLReader.setFeature(java.lang.String, boolean)
,
XMLReader.setProperty(java.lang.String, java.lang.Object)
Method Detail |
---|
public TransformerImpl getTransformer()
public void setParent(org.xml.sax.XMLReader parent)
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.
setParent
in interface org.xml.sax.XMLFilter
setParent
in class org.xml.sax.helpers.XMLFilterImpl
parent
- The parent XML reader.
java.lang.NullPointerException
- If the parent is null.public void parse(org.xml.sax.InputSource input) throws org.xml.sax.SAXException, java.io.IOException
parse
in interface org.xml.sax.XMLReader
parse
in class org.xml.sax.helpers.XMLFilterImpl
input
- The input source for the document entity.
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.XMLReader.parse(org.xml.sax.InputSource)
public void parse(java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
parse
in interface org.xml.sax.XMLReader
parse
in class org.xml.sax.helpers.XMLFilterImpl
systemId
- The system identifier as a fully-qualified URI.
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.XMLReader.parse(java.lang.String)
private void setupParse()
Before every parse, check whether the parent is non-null, and re-register the filter for all of the events.
public void setContentHandler(org.xml.sax.ContentHandler handler)
setContentHandler
in interface org.xml.sax.XMLReader
setContentHandler
in class org.xml.sax.helpers.XMLFilterImpl
handler
- The new content handler.
java.lang.NullPointerException
- If the handler
is null.XMLReader.setContentHandler(org.xml.sax.ContentHandler)
public void setErrorListener(javax.xml.transform.ErrorListener handler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |