|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.caucho.vfs.OutputStreamWithBuffer
com.caucho.server.http.AbstractResponseStream
com.caucho.server.http.ToByteResponseStream
com.caucho.server.webapp.IncludeResponseStream2
public class IncludeResponseStream2
| Field Summary |
|---|
| Fields inherited from class com.caucho.server.http.ToByteResponseStream |
|---|
SIZE |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.caucho.server.http.ToByteResponseStream |
|---|
clearBuffer, flush, flushBuffer, flushByteBuffer, getBuffer, getBufferLength, getBufferOffset, getBufferSize, getByteBufferOffset, getCharBuffer, getCharOffset, getContentLength, getRemaining, isCharFlushing, isDisableAutoFlush, nextCharBuffer, print, print, setBufferSize, setCharOffset, setEncoding, setFlush, setLocale, setOutputStreamOnly |
| Methods inherited from class com.caucho.server.http.AbstractResponseStream |
|---|
clear, close, flushNext, getByteCacheStream, getEncoding, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setCauchoResponse, setCommitted, setHead, toClosing, toString |
| 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 |
|---|
public void start()
ToByteResponseStream
start 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()
AbstractResponseStream
getCharCacheStream in class AbstractResponseStream
protected void flushCharBuffer()
throws java.io.IOException
flushCharBuffer in class ToByteResponseStreamjava.io.IOException
public void setBufferOffset(int offset)
throws java.io.IOException
setBufferOffset in class ToByteResponseStreamjava.io.IOException
public byte[] nextBuffer(int offset)
throws java.io.IOException
nextBuffer in class ToByteResponseStreamjava.io.IOException
public void write(int ch)
throws java.io.IOException
write in interface ByteAppendablewrite in class ToByteResponseStreamch - byte to write
java.io.IOException
public 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 buffer
java.io.IOExceptionprotected void writeHeaders(int length)
ToByteResponseStream
writeHeaders in class ToByteResponseStreamlength - the current buffer length
protected 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 buffer
java.io.IOExceptionprotected void startCaching(boolean isByte)
public void flushByte()
throws java.io.IOException
flushByte in class AbstractResponseStreamjava.io.IOException
public void flushChar()
throws java.io.IOException
flushChar in class AbstractResponseStreamjava.io.IOException
protected void closeImpl()
throws java.io.IOException
closeImpl in class ToByteResponseStreamjava.io.IOExceptionpublic void completeCache()
completeCache in class AbstractResponseStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||