public class TrAXFilter extends XMLFilterImpl
Constructor and Description |
---|
TrAXFilter(Templates templates) |
Modifier and Type | Method and Description |
---|---|
Transformer |
getTransformer() |
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) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public TrAXFilter(Templates templates) throws TransformerConfigurationException
public Transformer getTransformer()
public void parse(InputSource input) throws SAXException, java.io.IOException
XMLFilterImpl
parse
in interface XMLReader
parse
in class XMLFilterImpl
input
- The input source for the document entity.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.InputSource
,
XMLReader.parse(java.lang.String)
,
XMLReader.setEntityResolver(org.xml.sax.EntityResolver)
,
XMLReader.setDTDHandler(org.xml.sax.DTDHandler)
,
XMLReader.setContentHandler(org.xml.sax.ContentHandler)
,
XMLReader.setErrorHandler(org.xml.sax.ErrorHandler)
public void parse(java.lang.String systemId) throws SAXException, java.io.IOException
XMLFilterImpl
parse
in interface XMLReader
parse
in class XMLFilterImpl
systemId
- The system identifier as a fully-qualified URI.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 setContentHandler(ContentHandler handler)
XMLFilterImpl
setContentHandler
in interface XMLReader
setContentHandler
in class XMLFilterImpl
handler
- the new content handlerXMLReader.getContentHandler()
public void setErrorListener(ErrorListener handler)
Copyright © 2014 Apache XML Project. All Rights Reserved.