org.mule.transport.http
Class ResponseWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
org.mule.transport.http.ResponseWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class ResponseWriter
- extends FilterWriter
Provides a hybrid Writer/OutputStream for sending HTTP response data
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRLF
public static final String CRLF
- See Also:
- Constant Field Values
ISO_8859_1
public static final String ISO_8859_1
- See Also:
- Constant Field Values
ResponseWriter
public ResponseWriter(OutputStream outStream)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
ResponseWriter
public ResponseWriter(OutputStream outStream,
String encoding)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
ResponseWriter
public ResponseWriter(OutputStream outStream,
String lineSeparator,
String encoding)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getEncoding
public String getEncoding()
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterWriter
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class FilterWriter
- Throws:
IOException
write
public void write(byte b)
throws IOException
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
print
public void print(String s)
throws IOException
- Throws:
IOException
print
public void print(int i)
throws IOException
- Throws:
IOException
println
public void println(int i)
throws IOException
- Throws:
IOException
println
public void println(String s)
throws IOException
- Throws:
IOException
println
public void println()
throws IOException
- Throws:
IOException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.