public class StubResponseStream extends AbstractResponseStream
| Constructor and Description |
|---|
StubResponseStream() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, toStringpublic 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 byte[] getBuffer()
throws java.io.IOException
getBuffer in class OutputStreamWithBufferjava.io.IOExceptionpublic int getBufferOffset()
throws java.io.IOException
getBufferOffset in class OutputStreamWithBufferjava.io.IOExceptionpublic void setBufferOffset(int offset)
throws java.io.IOException
setBufferOffset in class OutputStreamWithBufferjava.io.IOExceptionpublic byte[] nextBuffer(int offset)
throws java.io.IOException
nextBuffer in class OutputStreamWithBufferlength - the length of the completed bufferjava.io.IOExceptionpublic char[] getCharBuffer()
throws java.io.IOException
getCharBuffer in class AbstractResponseStreamjava.io.IOExceptionpublic int getCharOffset()
throws java.io.IOException
getCharOffset in class AbstractResponseStreamjava.io.IOExceptionpublic void setCharOffset(int offset)
throws java.io.IOException
setCharOffset in class AbstractResponseStreamjava.io.IOExceptionpublic char[] nextCharBuffer(int offset)
throws java.io.IOException
nextCharBuffer in class AbstractResponseStreamjava.io.IOExceptionpublic void write(int v)
throws java.io.IOException
write in interface ByteAppendablewrite in class AbstractResponseStreamjava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in interface ByteAppendablewrite in class AbstractResponseStreamjava.io.IOExceptionpublic void print(int ch)
throws java.io.IOException
print in class AbstractResponseStreamjava.io.IOExceptionpublic void print(char[] buffer,
int offset,
int length)
throws java.io.IOException
print in class AbstractResponseStreamjava.io.IOExceptionpublic void clearBuffer()
clearBuffer in class AbstractResponseStreampublic void flushBuffer()
throws java.io.IOException
flushBuffer in class AbstractResponseStreamjava.io.IOException