com.caucho.filters
Class FilterWrapperResponseStream

java.lang.Object
  extended by java.io.OutputStream
      extended by com.caucho.vfs.OutputStreamWithBuffer
          extended by com.caucho.server.connection.AbstractResponseStream
              extended by com.caucho.server.connection.ToByteResponseStream
                  extended by com.caucho.filters.FilterWrapperResponseStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class FilterWrapperResponseStream
extends ToByteResponseStream


Field Summary
 
Fields inherited from class com.caucho.server.connection.ToByteResponseStream
_isFinished, SIZE
 
Constructor Summary
FilterWrapperResponseStream()
           
 
Method Summary
 void close()
          Close.
 void finish()
          Finish.
 void flush()
          flushing
 void init(CauchoResponseWrapper response)
           
protected  void writeNext(byte[] buf, int offset, int length, boolean isEnd)
          Writes the next chunk of data to the response stream.
 
Methods inherited from class com.caucho.server.connection.ToByteResponseStream
clearBuffer, clearClose, flushBuffer, flushByteBuffer, flushCharBuffer, getBuffer, getBufferLength, getBufferOffset, getBufferSize, getCharBuffer, getCharOffset, getRemaining, isCauchoResponseStream, nextBuffer, nextCharBuffer, print, print, setBufferOffset, setBufferSize, setCharOffset, setEncoding, setHead, setLocale, setOutputStreamOnly, start, write, write
 
Methods inherited from class com.caucho.server.connection.AbstractResponseStream
clear, clearClosed, flushByte, flushChar, getContentLength, isAutoFlush, isCommitted, isHead, sendFile, setAutoFlush, setByteCacheStream, setCharCacheStream
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterWrapperResponseStream

public FilterWrapperResponseStream()
Method Detail

init

public void init(CauchoResponseWrapper response)

writeNext

protected void writeNext(byte[] buf,
                         int offset,
                         int length,
                         boolean isEnd)
                  throws java.io.IOException
Writes the next chunk of data to the response stream.

Specified by:
writeNext in class ToByteResponseStream
Parameters:
buf - the buffer containing the data
offset - start offset into the buffer
length - length of the data in the buffer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
flushing

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class ToByteResponseStream
Throws:
java.io.IOException

finish

public void finish()
            throws java.io.IOException
Finish.

Overrides:
finish in class AbstractResponseStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Close.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class ToByteResponseStream
Throws:
java.io.IOException