Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.catalina.connector.http
Class HttpResponseStream

    java.lang.Object
      |
      +--java.io.OutputStream
            |
            +--javax.servlet.ServletOutputStream
                  |
                  +--org.apache.catalina.connector.ResponseStream
                        |
                        +--org.apache.catalina.connector.http.HttpResponseStream

public final class HttpResponseStream
extends ResponseStream

Response stream for the HTTP/1.1 connector. This stream will automatically chunk the answer if using HTTP/1.1 and no Content-Length has been properly set.

Author:
  Remy Maucherat

Fields inherited from class org.apache.catalina.connector.ResponseStream
`closed, commit, count, length, response, sm, stream, suspended`

Constructor Summary
`HttpResponseStream(org.apache.catalina.connector.http.HttpResponseImpl response)` Construct a servlet output stream associated with the specified Request.

Method Summary
`protected void` | `checkHead(org.apache.catalina.connector.http.HttpResponseImpl response)`
`void` | `close()` Close this output stream, causing any buffered data to be flushed and any further output data to throw an IOException.
`void` | `write(byte[] b, int off, int len)` Write the specified byte array.
`void` | `write(int b)` Write the specified byte to our output stream.

Methods inherited from class org.apache.catalina.connector.ResponseStream
`flush, write`

Methods inherited from class javax.servlet.ServletOutputStream
`print, 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`

Constructor Detail

### HttpResponseStream

    public HttpResponseStream(org.apache.catalina.connector.http.HttpResponseImpl response)

  Construct a servlet output stream associated with the specified Request.
  Parameters:
    `response` - The associated response

Method Detail

### write

    public void write(int b)
               throws java.io.IOException

  Write the specified byte to our output stream.
  Overrides:
    write in class ResponseStream
  Parameters:
    `b` - The byte to be written
  Throws:
    java.io.IOException - if an input/output error occurs

### write

    public void write(byte[] b,
                      int off,
                      int len)
               throws java.io.IOException

  Write the specified byte array.
  Overrides:
    write in class ResponseStream
  Tags copied from class: ResponseStream
  Parameters:
    `b` - The byte array containing the bytes to be written
    `off` - Zero-relative starting offset of the bytes to be written
    `len` - The number of bytes to be written
  Throws:
    java.io.IOException - if an input/output error occurs

### close

    public void close()
               throws java.io.IOException

  Close this output stream, causing any buffered data to be flushed and any further output data to throw an IOException.
  Overrides:
    close in class ResponseStream

### checkHead

    protected void checkHead(org.apache.catalina.connector.http.HttpResponseImpl response)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.