org.exolab.adaptx.jaxp.transform.sax

Class TransformerHandlerImpl

Implemented Interfaces:
ContentHandler, DocumentHandler, LexicalHandler, TransformerHandler

public class TransformerHandlerImpl
extends SAXInput
implements TransformerHandler

An implemenation of the JAXP TransformerHandler interface

see javax.xml.transform.sax.TransformerHandler for more information

Version:
$Revision: 3827 $ $Date: 2003-09-09 00:40:54 -0400 (Tue, 09 Sep 2003) $
Author:
Keith Visco

Constructor Summary

TransformerHandlerImpl()
Creates a new TransformerHandlerImpl
TransformerHandlerImpl(XSLTStylesheet stylesheet)
Creates a new TransformerHandlerImpl with the given XSLTStylesheet to use during the transformation.

Method Summary

String
getSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.
Transformer
getTransformer()
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.
void
notationDecl(String name, String publicId, String systemId)
void
setResult(Result result)
Enables the user of the TransformerHandler to set the to set the Result for the transformation.
void
setSystemId(String systemID)
Set the base ID (URI or system ID) from where relative URLs will be resolved.
void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)

Methods inherited from class org.exolab.adaptx.xslt.util.SAXInput

characters, comment, endCDATA, endDTD, endDocument, endElement, endElement, endEntity, endPrefixMapping, getRoot, ignorableWhitespace, processingInstruction, setDocumentLocator, setOutputHandler, setOutputHandler, setProcessor, setStylesheet, skippedEntity, startCDATA, startDTD, startDocument, startElement, startElement, startEntity, startPrefixMapping

Constructor Details

TransformerHandlerImpl

public TransformerHandlerImpl()
Creates a new TransformerHandlerImpl

TransformerHandlerImpl

public TransformerHandlerImpl(XSLTStylesheet stylesheet)
Creates a new TransformerHandlerImpl with the given XSLTStylesheet to use during the transformation.
Parameters:
stylesheet - the XSLTStylesheet to use during the transformation

Method Details

getSystemId

public String getSystemId()
Get the base ID (URI or system ID) from where relative URLs will be resolved.

getTransformer

public Transformer getTransformer()
Get the Transformer associated with this handler, which is needed in order to set parameters and output properties.

notationDecl

public void notationDecl(String name,
                         String publicId,
                         String systemId)
            throws SAXException

setResult

public void setResult(Result result)
            throws IllegalArgumentException
Enables the user of the TransformerHandler to set the to set the Result for the transformation. A result must be set before the events are fired!
Parameters:
result - A Result instance, should not be null.

setSystemId

public void setSystemId(String systemID)
Set the base ID (URI or system ID) from where relative URLs will be resolved.
Parameters:
systemID - Base URI for the source tree.

unparsedEntityDecl

public void unparsedEntityDecl(String name,
                               String publicId,
                               String systemId,
                               String notationName)
            throws SAXException