org.apache.axis2.transport.http.server
Class ResponseWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.FilterWriter
          extended byorg.apache.axis2.transport.http.server.ResponseWriter

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

ResponseWriter

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

ResponseWriter

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

getEncoding

public java.lang.String getEncoding()

close

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

flush

public void flush()
           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)
           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