org.mule.transport.http
Class ResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.FilterWriter
          extended by org.mule.transport.http.ResponseWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class ResponseWriter
extends java.io.FilterWriter

Provides a hybrid Writer/OutputStream for sending HTTP response data


Field Summary
static java.lang.String CRLF
           
static java.lang.String ISO_8859_1
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
ResponseWriter(java.io.OutputStream outStream)
           
ResponseWriter(java.io.OutputStream outStream, java.lang.String encoding)
           
ResponseWriter(java.io.OutputStream outStream, java.lang.String lineSeparator, java.lang.String encoding)
           
 
Method Summary
 void close()
           
 void flush()
           
 java.lang.String getEncoding()
           
 void print(int i)
           
 void print(java.lang.String s)
           
 void println()
           
 void println(int i)
           
 void println(java.lang.String s)
           
 void write(byte b)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FilterWriter
write, write, write
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static final java.lang.String CRLF
See Also:
Constant Field Values

ISO_8859_1

public static final java.lang.String ISO_8859_1
See Also:
Constant Field Values
Constructor Detail

ResponseWriter

public ResponseWriter(java.io.OutputStream outStream)
               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

ResponseWriter

public ResponseWriter(java.io.OutputStream outStream,
                      java.lang.String encoding)
               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

ResponseWriter

public ResponseWriter(java.io.OutputStream outStream,
                      java.lang.String lineSeparator,
                      java.lang.String encoding)
               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException
Method Detail

getEncoding

public java.lang.String getEncoding()

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterWriter
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.FilterWriter
Throws:
java.io.IOException

write

public void write(byte b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Throws:
java.io.IOException

print

public void print(java.lang.String s)
           throws java.io.IOException
Throws:
java.io.IOException

print

public void print(int i)
           throws java.io.IOException
Throws:
java.io.IOException

println

public void println(int i)
             throws java.io.IOException
Throws:
java.io.IOException

println

public void println(java.lang.String s)
             throws java.io.IOException
Throws:
java.io.IOException

println

public void println()
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.