com.jclark.xsl.sax2

Class OutputMethodHandlerImpl

Implemented Interfaces:
OutputMethodHandler

public class OutputMethodHandlerImpl
extends java.lang.Object
implements OutputMethodHandler

produces a ContentHandler suitable for a given output method i.e text, XML, etc and destination

Fields inherited from interface com.jclark.xsl.sax2.OutputMethodHandler

namespaceSeparator

Constructor Summary

OutputMethodHandlerImpl()

Method Summary

ContentHandler
createContentHandler(String name, Properties atts)
obtain a ContentHandler appropriate for the named output method and our destination
OutputMethodHandler
createOutputMethodHandler(String uri)
Creates a new instance for writing to the given URI.
void
setDestination(Destination dest)
set the target of our output stream

Constructor Details

OutputMethodHandlerImpl

public OutputMethodHandlerImpl()

Method Details

createContentHandler

public ContentHandler createContentHandler(String name,
                                           Properties atts)
            throws SAXException,
                   IOException
obtain a ContentHandler appropriate for the named output method and our destination
Specified by:
createContentHandler in interface OutputMethodHandler


createOutputMethodHandler

public OutputMethodHandler createOutputMethodHandler(String uri)
Creates a new instance for writing to the given URI. Useful for "xt:document" extension element
Specified by:
createOutputMethodHandler in interface OutputMethodHandler


setDestination

public void setDestination(Destination dest)
set the target of our output stream