com.jclark.xsl.sax
Interface Destination

All Known Implementing Classes:
FileDescriptorDestination, FileDestination, GenericDestination, OutputStreamDestination, ServletDestination

public interface Destination

represents the output destination for an XML document


Method Summary
 java.lang.String getEncoding()
          Returns the IANA name of the encoding actually used.
 java.io.OutputStream getOutputStream(java.lang.String contentType, java.lang.String encoding)
           
 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)
           
 

Method Detail

getOutputStream

java.io.OutputStream getOutputStream(java.lang.String contentType,
                                     java.lang.String encoding)
                                     throws java.io.IOException
Throws:
java.io.IOException

getWriter

java.io.Writer getWriter(java.lang.String contentType,
                         java.lang.String encoding)
                         throws java.io.IOException,
                                java.io.UnsupportedEncodingException
Throws:
java.io.IOException
java.io.UnsupportedEncodingException

keepOpen

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.


getEncoding

java.lang.String getEncoding()
Returns the IANA name of the encoding actually used.


resolve

Destination resolve(java.lang.String uri)