com.jclark.xsl.sax
Class ServletDestination

java.lang.Object
  extended by com.jclark.xsl.sax.GenericDestination
      extended by com.jclark.xsl.sax.ServletDestination
All Implemented Interfaces:
Destination

public class ServletDestination
extends GenericDestination

provides and initializes an output stream to (through) a ServletResponse


Constructor Summary
ServletDestination(javax.servlet.ServletResponse response)
           
 
Method Summary
 java.io.OutputStream getOutputStream(java.lang.String contentType, java.lang.String encoding)
          gets an OutputStream for the named (Java style) character encoding and mime content type.
 
Methods inherited from class com.jclark.xsl.sax.GenericDestination
getEncoding, getWriter, keepOpen, resolve, setEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletDestination

public ServletDestination(javax.servlet.ServletResponse response)
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream(java.lang.String contentType,
                                            java.lang.String encoding)
                                     throws java.io.IOException
gets an OutputStream for the named (Java style) character encoding and mime content type. Sets the ServletResponse's content type and encoding

Throws:
java.io.IOException