org.mule.transport.http
Class ResponseWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
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)
|
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 |
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
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
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.