public class IncludeResponseStream2 extends ToByteResponseStream
SIZE| Modifier and Type | Method and Description |
|---|---|
protected void |
closeImpl()
Finish.
|
void |
completeCache() |
void |
flushByte()
flushing
|
void |
flushChar()
flushing
|
protected void |
flushCharBuffer()
Converts the char buffer.
|
java.io.Writer |
getCharCacheStream()
Sets a char cache stream.
|
boolean |
isCauchoResponseStream()
Returns true for a caucho response stream.
|
byte[] |
nextBuffer(int offset)
Sets the byte buffer offset.
|
void |
setBufferOffset(int offset)
Sets the byte buffer offset.
|
void |
setByteCacheStream(java.io.OutputStream cacheStream)
Sets any cache stream.
|
void |
setCharCacheStream(java.io.Writer cacheWriter)
Sets any cache stream.
|
void |
start()
Initializes the Buffered Response stream at the beginning of a request.
|
protected void |
startCaching(boolean isByte) |
void |
write(byte[] buf,
int offset,
int length)
Writes the next chunk of data to the response stream.
|
void |
write(int ch)
Writes a byte
|
protected void |
writeHeaders(int length)
Writes any http headers.
|
protected void |
writeNext(byte[] buf,
int offset,
int length,
boolean isEnd)
Writes the next chunk of data to the response stream.
|
clearBuffer, flush, flushBuffer, flushByteBuffer, getBuffer, getBufferLength, getBufferOffset, getBufferSize, getByteBufferOffset, getCharBuffer, getCharOffset, getContentLength, getRemaining, isCharFlushing, isDisableAutoFlush, nextCharBuffer, print, print, setBufferSize, setCharOffset, setEncoding, setFlush, setLocale, setOutputStreamOnlyclear, close, flushNext, getByteCacheStream, getEncoding, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setCauchoResponse, setCommitted, setHead, toClosing, toStringpublic void start()
ToByteResponseStreamstart in class ToByteResponseStreampublic boolean isCauchoResponseStream()
isCauchoResponseStream in class ToByteResponseStreampublic void setByteCacheStream(java.io.OutputStream cacheStream)
setByteCacheStream in class AbstractResponseStreampublic void setCharCacheStream(java.io.Writer cacheWriter)
setCharCacheStream in class AbstractResponseStreampublic java.io.Writer getCharCacheStream()
AbstractResponseStreamgetCharCacheStream in class AbstractResponseStreamprotected void flushCharBuffer()
throws java.io.IOException
flushCharBuffer in class ToByteResponseStreamjava.io.IOExceptionpublic void setBufferOffset(int offset)
throws java.io.IOException
setBufferOffset in class ToByteResponseStreamjava.io.IOExceptionpublic byte[] nextBuffer(int offset)
throws java.io.IOException
nextBuffer in class ToByteResponseStreamjava.io.IOExceptionpublic void write(int ch)
throws java.io.IOException
write in interface ByteAppendablewrite in class ToByteResponseStreamch - byte to writejava.io.IOExceptionpublic void write(byte[] buf,
int offset,
int length)
throws java.io.IOException
write in interface ByteAppendablewrite in class ToByteResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the bufferjava.io.IOExceptionprotected void writeHeaders(int length)
ToByteResponseStreamwriteHeaders in class ToByteResponseStreamlength - the current buffer lengthprotected void writeNext(byte[] buf,
int offset,
int length,
boolean isEnd)
throws java.io.IOException
writeNext in class ToByteResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the bufferjava.io.IOExceptionprotected void startCaching(boolean isByte)
public void flushByte()
throws java.io.IOException
flushByte in class AbstractResponseStreamjava.io.IOExceptionpublic void flushChar()
throws java.io.IOException
flushChar in class AbstractResponseStreamjava.io.IOExceptionprotected void closeImpl()
throws java.io.IOException
closeImpl in class ToByteResponseStreamjava.io.IOExceptionpublic void completeCache()
completeCache in class AbstractResponseStream