com.jclark.xsl.sax
Class GenericDestination

java.lang.Object
  |
  +--com.jclark.xsl.sax.GenericDestination
All Implemented Interfaces:
Destination
Direct Known Subclasses:
FileDescriptorDestination, FileDestination, OutputStreamDestination, ServletDestination

public abstract class GenericDestination
extends java.lang.Object
implements Destination


Constructor Summary
GenericDestination()
           
 
Method Summary
 java.lang.String getEncoding()
          Returns the IANA name of the encoding actually used.
 java.io.Writer getWriter(java.lang.String contentType, java.lang.String encoding)
           
 boolean keepOpen()
          Returns true if the OutputStream or Writer should be kept open by the caller and not closed when the caller is done with it.
 Destination resolve(java.lang.String uri)
           
protected  void setEncoding(java.lang.String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jclark.xsl.sax.Destination
getOutputStream
 

Constructor Detail

GenericDestination

public GenericDestination()
Method Detail

getEncoding

public java.lang.String getEncoding()
Description copied from interface: Destination
Returns the IANA name of the encoding actually used.
Specified by:
getEncoding in interface Destination

setEncoding

protected void setEncoding(java.lang.String encoding)

keepOpen

public boolean keepOpen()
Description copied from interface: Destination
Returns true if the OutputStream or Writer should be kept open by the caller and not closed when the caller is done with it.
Specified by:
keepOpen in interface Destination

getWriter

public java.io.Writer getWriter(java.lang.String contentType,
                                java.lang.String encoding)
                         throws java.io.IOException,
                                java.io.UnsupportedEncodingException
Specified by:
getWriter in interface Destination

resolve

public Destination resolve(java.lang.String uri)
Specified by:
resolve in interface Destination