org.mortbay.jetty
Class HttpConnection.OutputWriter

java.lang.Object
  extended by java.io.Writer
      extended by org.mortbay.jetty.HttpConnection.OutputWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable
Enclosing class:
HttpConnection

public class HttpConnection.OutputWriter
extends Writer


Field Summary
(package private)  ByteArrayOutputStream2 _bytes
           
(package private)  String _characterEncoding
           
(package private)  char[] _chars
           
(package private)  Writer _converter
           
(package private)  int _maxChar
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
HttpConnection.OutputWriter()
           
 
Method Summary
 void close()
           
 void flush()
           
 void setCharacterEncoding(String encoding)
           
 void write(char[] s, int offset, int length)
           
 void write(String s, int offset, int length)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_maxChar

int _maxChar

_characterEncoding

String _characterEncoding

_converter

Writer _converter

_bytes

ByteArrayOutputStream2 _bytes

_chars

char[] _chars
Constructor Detail

HttpConnection.OutputWriter

public HttpConnection.OutputWriter()
Method Detail

setCharacterEncoding

public void setCharacterEncoding(String encoding)

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
Throws:
IOException

write

public void write(String s,
                  int offset,
                  int length)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] s,
                  int offset,
                  int length)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException