com.jclark.xsl.sax

Interface Destination

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

public interface Destination

represents the output destination for an XML document

Method Summary

String
getEncoding()
Returns the IANA name of the encoding actually used.
OutputStream
getOutputStream(String contentType, String encoding)
Writer
getWriter(String contentType, 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(String uri)

Method Details

getEncoding

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


getOutputStream

public OutputStream getOutputStream(String contentType,
                                    String encoding)
            throws IOException


getWriter

public Writer getWriter(String contentType,
                        String encoding)
            throws IOException,
                   UnsupportedEncodingException


keepOpen

public 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.


resolve

public Destination resolve(String uri)