com.jclark.xsl.sax

Class GenericDestination

public abstract class GenericDestination extends Object implements Destination

A base class for output Destinations, providing some common default behaviors
Method Summary
StringgetEncoding()
returns the IANA character encoding name
WritergetWriter(String contentType, String encoding)
get a Writer for an OutputHandler to write characters to our default behavior is to construct a new Writer around the OutputStream associated with this Destination.
booleankeepOpen()
determines whether the output stream should be closed when the transformation is completed.
Destinationresolve(String uri)
By default return a FileDestination to the given (local) URI
protected voidsetEncoding(String encoding)
sets the IANA character encoding name from a Java character encoding name.

Method Detail

getEncoding

public String getEncoding()
returns the IANA character encoding name

getWriter

public Writer getWriter(String contentType, String encoding)
get a Writer for an OutputHandler to write characters to our default behavior is to construct a new Writer around the OutputStream associated with this Destination.

keepOpen

public boolean keepOpen()
determines whether the output stream should be closed when the transformation is completed. The default value is true

resolve

public Destination resolve(String uri)
By default return a FileDestination to the given (local) URI

setEncoding

protected void setEncoding(String encoding)
sets the IANA character encoding name from a Java character encoding name.