org.mortbay.jetty
Class HttpConnection.Output

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.mortbay.jetty.HttpConnection.Output
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
HttpConnection

public class HttpConnection.Output
extends ServletOutputStream


Field Summary
(package private)  ByteArrayBuffer _buf1
           
(package private)  ByteArrayBuffer _bufn
           
(package private)  boolean _closed
           
 
Constructor Summary
HttpConnection.Output()
           
 
Method Summary
 void close()
           
 void flush()
           
 void print(String s)
           
(package private)  void reopen()
           
 void sendContent(Object content)
           
private  void write(Buffer buffer)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_buf1

ByteArrayBuffer _buf1

_bufn

ByteArrayBuffer _bufn

_closed

boolean _closed
Constructor Detail

HttpConnection.Output

public HttpConnection.Output()
Method Detail

close

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

reopen

void reopen()

flush

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

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

private void write(Buffer buffer)
            throws IOException
Throws:
IOException

print

public void print(String s)
           throws IOException
Overrides:
print in class ServletOutputStream
Throws:
IOException

sendContent

public void sendContent(Object content)
                 throws IOException
Throws:
IOException