com.caucho.server.fastcgi
Class FastCgiResponseStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.vfs.OutputStreamWithBuffer
          extended by com.caucho.server.http.AbstractResponseStream
              extended by com.caucho.server.http.ToByteResponseStream
                  extended by com.caucho.server.http.ResponseStream
                      extended by com.caucho.server.fastcgi.FastCgiResponseStream
All Implemented Interfaces:
ByteAppendable, java.io.Closeable, java.io.Flushable

public class FastCgiResponseStream
extends ResponseStream


Field Summary
 
Fields inherited from class com.caucho.server.http.ToByteResponseStream
SIZE
 
Method Summary
protected  void closeNextImpl()
           
protected  void flushNextImpl()
           
protected  byte[] getNextBuffer()
           
protected  int getNextBufferOffset()
           
protected  void setNextBufferOffsetImpl(int offset)
           
 void start()
          initializes the Response stream at the beginning of a request.
protected  byte[] writeNextBufferImpl(int offset)
           
protected  void writeTailImpl(boolean isClose)
           
 
Methods inherited from class com.caucho.server.http.ResponseStream
canWrite, clear, clearBuffer, clearClosed, clearNext, closeImpl, closeNext, completeCache, dbgId, flush, flushByte, flushChar, flushNext, getBuffer, getBufferOffset, getByteCacheStream, getCauchoResponse, getContentLength, getNextStartOffset, getResponse, hasData, isCauchoResponseStream, isCloseComplete, isCommitted, isDisableAutoFlush, isNextValid, killCaching, nextBuffer, setAutoFlush, setBufferOffset, setBufferSize, setByteCacheStream, setFlush, setNextBufferOffset, setProxyCacheResponse, setResponse, startCaching, toString, write, writeHeaders, writeNext, writeNextBuffer, writeTail
 
Methods inherited from class com.caucho.server.http.ToByteResponseStream
flushBuffer, flushByteBuffer, flushCharBuffer, getBufferLength, getBufferSize, getByteBufferOffset, getCharBuffer, getCharOffset, getRemaining, isCharFlushing, nextCharBuffer, print, print, setCharOffset, setEncoding, setLocale, setOutputStreamOnly, write
 
Methods inherited from class com.caucho.server.http.AbstractResponseStream
close, getCharCacheStream, getEncoding, isAutoFlush, isClosed, isClosing, isHead, sendFile, setCauchoResponse, setCharCacheStream, setCommitted, setHead, toClosing
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

start

public void start()
Description copied from class: ResponseStream
initializes the Response stream at the beginning of a request.

Overrides:
start in class ResponseStream

getNextBuffer

protected byte[] getNextBuffer()
Specified by:
getNextBuffer in class ResponseStream

getNextBufferOffset

protected int getNextBufferOffset()
                           throws java.io.IOException
Specified by:
getNextBufferOffset in class ResponseStream
Throws:
java.io.IOException

setNextBufferOffsetImpl

protected void setNextBufferOffsetImpl(int offset)
Specified by:
setNextBufferOffsetImpl in class ResponseStream

writeNextBufferImpl

protected byte[] writeNextBufferImpl(int offset)
                              throws java.io.IOException
Specified by:
writeNextBufferImpl in class ResponseStream
Throws:
java.io.IOException

flushNextImpl

protected void flushNextImpl()
                      throws java.io.IOException
Specified by:
flushNextImpl in class ResponseStream
Throws:
java.io.IOException

closeNextImpl

protected void closeNextImpl()
                      throws java.io.IOException
Specified by:
closeNextImpl in class ResponseStream
Throws:
java.io.IOException

writeTailImpl

protected void writeTailImpl(boolean isClose)
                      throws java.io.IOException
Overrides:
writeTailImpl in class ResponseStream
Throws:
java.io.IOException