public class StreamWrapperResponseStream extends ToByteResponseStream
SIZE
Constructor and Description |
---|
StreamWrapperResponseStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeImpl()
Close.
|
void |
finish()
Finish.
|
void |
flush()
flushing
|
void |
init(java.io.OutputStream os) |
protected void |
writeNext(byte[] buf,
int offset,
int length,
boolean isEnd)
Writes the next chunk of data to the response stream.
|
clearBuffer, flushBuffer, flushByteBuffer, flushCharBuffer, getBuffer, getBufferLength, getBufferOffset, getBufferSize, getByteBufferOffset, getCharBuffer, getCharOffset, getContentLength, getRemaining, isCauchoResponseStream, isCharFlushing, isDisableAutoFlush, nextBuffer, nextCharBuffer, print, print, setBufferOffset, setBufferSize, setCharOffset, setEncoding, setFlush, setLocale, setOutputStreamOnly, start, write, write, writeHeaders
clear, close, completeCache, flushByte, flushChar, flushNext, getByteCacheStream, getCharCacheStream, getEncoding, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setByteCacheStream, setCauchoResponse, setCharCacheStream, setCommitted, setHead, toClosing, toString
public void init(java.io.OutputStream os)
protected void writeNext(byte[] buf, int offset, int length, boolean isEnd) throws java.io.IOException
writeNext
in class ToByteResponseStream
buf
- the buffer containing the dataoffset
- start offset into the bufferlength
- length of the data in the bufferjava.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class ToByteResponseStream
java.io.IOException
public void finish() throws java.io.IOException
java.io.IOException
protected void closeImpl() throws java.io.IOException
closeImpl
in class ToByteResponseStream
java.io.IOException