|
||||||||||
| 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.connection.AbstractResponseStream
com.caucho.server.connection.WrapperResponseStream
public class WrapperResponseStream
| Constructor Summary | |
|---|---|
WrapperResponseStream()
|
|
| Method Summary | |
|---|---|
void |
clearBuffer()
Clears the buffer. |
void |
close()
Close. |
void |
finish()
Finish. |
void |
flush()
Flushes the output. |
void |
flushBuffer()
Flushes the buffer. |
void |
flushByte()
Flushes the buffer. |
void |
flushChar()
Flushes the buffer. |
void |
flushCharBuffer()
Writes the char buffer to the output stream. |
byte[] |
getBuffer()
Gets the byte buffer |
int |
getBufferOffset()
Returns the buffer offset. |
int |
getBufferSize()
Gets the buffer size. |
char[] |
getCharBuffer()
Returns the char buffer. |
int |
getCharOffset()
Returns the char buffer offset. |
int |
getRemaining()
Returns the remaining buffer entries. |
void |
init(HttpServletResponse next)
|
boolean |
isCauchoResponseStream()
Returns true for a caucho response stream. |
byte[] |
nextBuffer(int offset)
Returns the next buffer. |
char[] |
nextCharBuffer(int offset)
Returns the next char buffer. |
void |
print(char[] buffer,
int offset,
int length)
Writes the next chunk of data to the response stream. |
void |
print(int ch)
Writes the next chunk of data to the response stream. |
void |
setBufferOffset(int offset)
Sets the byte buffer offset. |
void |
setBufferSize(int size)
Sets the buffer size. |
void |
setCharOffset(int offset)
Sets the char buffer offset. |
void |
write(byte[] buf,
int offset,
int length)
Writes the next chunk of data to the response stream. |
void |
write(int ch)
Writes the next chunk of data to the response stream. |
| Methods inherited from class com.caucho.server.connection.AbstractResponseStream |
|---|
clear, clearClosed, getContentLength, isAutoFlush, isCommitted, isHead, sendFile, setAutoFlush, setByteCacheStream, setCharCacheStream, setEncoding, setHead, setLocale, setOutputStreamOnly, start |
| 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 |
|---|
public WrapperResponseStream()
| Method Detail |
|---|
public void init(HttpServletResponse next)
public boolean isCauchoResponseStream()
isCauchoResponseStream in class AbstractResponseStreampublic void setBufferSize(int size)
setBufferSize in class AbstractResponseStreampublic int getBufferSize()
getBufferSize in class AbstractResponseStreampublic int getRemaining()
getRemaining in class AbstractResponseStreampublic char[] getCharBuffer()
getCharBuffer in class AbstractResponseStreampublic int getCharOffset()
getCharOffset in class AbstractResponseStreampublic void setCharOffset(int offset)
setCharOffset in class AbstractResponseStream
public char[] nextCharBuffer(int offset)
throws java.io.IOException
nextCharBuffer in class AbstractResponseStreamjava.io.IOException
public void print(int ch)
throws java.io.IOException
print in class AbstractResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the buffer
java.io.IOException
public void print(char[] buffer,
int offset,
int length)
throws java.io.IOException
print in class AbstractResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the buffer
java.io.IOExceptionpublic int getBufferOffset()
getBufferOffset in class OutputStreamWithBufferpublic void setBufferOffset(int offset)
setBufferOffset in class OutputStreamWithBufferpublic byte[] getBuffer()
getBuffer in class OutputStreamWithBuffer
public byte[] nextBuffer(int offset)
throws java.io.IOException
nextBuffer in class OutputStreamWithBufferjava.io.IOException
public void write(int ch)
throws java.io.IOException
write in class AbstractResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the buffer
java.io.IOException
public void write(byte[] buf,
int offset,
int length)
throws java.io.IOException
write in class AbstractResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the buffer
java.io.IOException
public void flushCharBuffer()
throws java.io.IOException
java.io.IOException
public void flushBuffer()
throws java.io.IOException
flushBuffer in class AbstractResponseStreamjava.io.IOException
public void flushChar()
throws java.io.IOException
flushChar in class AbstractResponseStreamjava.io.IOException
public void flushByte()
throws java.io.IOException
flushByte in class AbstractResponseStreamjava.io.IOExceptionpublic void clearBuffer()
clearBuffer in class AbstractResponseStream
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class AbstractResponseStreamjava.io.IOException
public void finish()
throws java.io.IOException
finish in class AbstractResponseStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class AbstractResponseStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||