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, setOutputStreamOnly
clear, close, flushNext, getByteCacheStream, getEncoding, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setCauchoResponse, setCommitted, setHead, toClosing, toString
public void start()
ToByteResponseStream
start
in class ToByteResponseStream
public boolean isCauchoResponseStream()
isCauchoResponseStream
in class ToByteResponseStream
public void setByteCacheStream(java.io.OutputStream cacheStream)
setByteCacheStream
in class AbstractResponseStream
public void setCharCacheStream(java.io.Writer cacheWriter)
setCharCacheStream
in class AbstractResponseStream
public java.io.Writer getCharCacheStream()
AbstractResponseStream
getCharCacheStream
in class AbstractResponseStream
protected void flushCharBuffer() throws java.io.IOException
flushCharBuffer
in class ToByteResponseStream
java.io.IOException
public void setBufferOffset(int offset) throws java.io.IOException
setBufferOffset
in class ToByteResponseStream
java.io.IOException
public byte[] nextBuffer(int offset) throws java.io.IOException
nextBuffer
in class ToByteResponseStream
java.io.IOException
public void write(int ch) throws java.io.IOException
write
in interface ByteAppendable
write
in class ToByteResponseStream
ch
- byte to writejava.io.IOException
public void write(byte[] buf, int offset, int length) throws java.io.IOException
write
in interface ByteAppendable
write
in class ToByteResponseStream
buf
- the buffer containing the dataoffset
- start offset into the bufferlength
- length of the data in the bufferjava.io.IOException
protected void writeHeaders(int length)
ToByteResponseStream
writeHeaders
in class ToByteResponseStream
length
- the current buffer lengthprotected 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
protected void startCaching(boolean isByte)
public void flushByte() throws java.io.IOException
flushByte
in class AbstractResponseStream
java.io.IOException
public void flushChar() throws java.io.IOException
flushChar
in class AbstractResponseStream
java.io.IOException
protected void closeImpl() throws java.io.IOException
closeImpl
in class ToByteResponseStream
java.io.IOException
public void completeCache()
completeCache
in class AbstractResponseStream