|
||||||||||
| 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.StubResponseStream
public class StubResponseStream
API for handling the PrintWriter/ServletOutputStream
| Constructor Summary | |
|---|---|
StubResponseStream()
|
|
| Method Summary | |
|---|---|
void |
clearBuffer()
Clears the output buffer. |
void |
flushBuffer()
Flushes the output buffer. |
byte[] |
getBuffer()
Returns the stream's buffer. |
int |
getBufferOffset()
Returns the stream's 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. |
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 a char array to the output. |
void |
print(int ch)
Writes a character to the output. |
void |
setBufferOffset(int offset)
Sets the stream's buffer length. |
void |
setBufferSize(int size)
Sets the buffer size. |
void |
setCharOffset(int offset)
Sets the char buffer offset. |
void |
write(byte[] buffer,
int offset,
int length)
Writes a byte array to the output. |
void |
write(int v)
Writes a byte to the output. |
| Methods inherited from class com.caucho.server.http.AbstractResponseStream |
|---|
clear, close, closeImpl, completeCache, flush, flushByte, flushChar, flushNext, getByteCacheStream, getCharCacheStream, getContentLength, getEncoding, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setByteCacheStream, setCauchoResponse, setCharCacheStream, setCommitted, setEncoding, setHead, setLocale, setOutputStreamOnly, start, 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 |
| Constructor Detail |
|---|
public StubResponseStream()
| Method Detail |
|---|
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 AbstractResponseStream
public byte[] getBuffer()
throws java.io.IOException
getBuffer in class OutputStreamWithBufferjava.io.IOException
public int getBufferOffset()
throws java.io.IOException
getBufferOffset in class OutputStreamWithBufferjava.io.IOException
public void setBufferOffset(int offset)
throws java.io.IOException
setBufferOffset in class OutputStreamWithBufferjava.io.IOException
public byte[] nextBuffer(int offset)
throws java.io.IOException
nextBuffer in class OutputStreamWithBufferlength - the length of the completed buffer
java.io.IOException
public char[] getCharBuffer()
throws java.io.IOException
getCharBuffer in class AbstractResponseStreamjava.io.IOException
public int getCharOffset()
throws java.io.IOException
getCharOffset in class AbstractResponseStreamjava.io.IOException
public void setCharOffset(int offset)
throws java.io.IOException
setCharOffset in class AbstractResponseStreamjava.io.IOException
public char[] nextCharBuffer(int offset)
throws java.io.IOException
nextCharBuffer in class AbstractResponseStreamjava.io.IOException
public void write(int v)
throws java.io.IOException
write in interface ByteAppendablewrite in class AbstractResponseStreamjava.io.IOException
public void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in interface ByteAppendablewrite in class AbstractResponseStreamjava.io.IOException
public void print(int ch)
throws java.io.IOException
print in class AbstractResponseStreamjava.io.IOException
public void print(char[] buffer,
int offset,
int length)
throws java.io.IOException
print in class AbstractResponseStreamjava.io.IOExceptionpublic void clearBuffer()
clearBuffer in class AbstractResponseStream
public void flushBuffer()
throws java.io.IOException
flushBuffer in class AbstractResponseStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||