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, toString
public boolean isCauchoResponseStream()
isCauchoResponseStream
in class AbstractResponseStream
public void setBufferSize(int size)
setBufferSize
in class AbstractResponseStream
public int getBufferSize()
getBufferSize
in class AbstractResponseStream
public int getRemaining()
getRemaining
in class AbstractResponseStream
public byte[] getBuffer() throws java.io.IOException
getBuffer
in class OutputStreamWithBuffer
java.io.IOException
public int getBufferOffset() throws java.io.IOException
getBufferOffset
in class OutputStreamWithBuffer
java.io.IOException
public void setBufferOffset(int offset) throws java.io.IOException
setBufferOffset
in class OutputStreamWithBuffer
java.io.IOException
public byte[] nextBuffer(int offset) throws java.io.IOException
nextBuffer
in class OutputStreamWithBuffer
length
- the length of the completed bufferjava.io.IOException
public char[] getCharBuffer() throws java.io.IOException
getCharBuffer
in class AbstractResponseStream
java.io.IOException
public int getCharOffset() throws java.io.IOException
getCharOffset
in class AbstractResponseStream
java.io.IOException
public void setCharOffset(int offset) throws java.io.IOException
setCharOffset
in class AbstractResponseStream
java.io.IOException
public char[] nextCharBuffer(int offset) throws java.io.IOException
nextCharBuffer
in class AbstractResponseStream
java.io.IOException
public void write(int v) throws java.io.IOException
write
in interface ByteAppendable
write
in class AbstractResponseStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
write
in interface ByteAppendable
write
in class AbstractResponseStream
java.io.IOException
public void print(int ch) throws java.io.IOException
print
in class AbstractResponseStream
java.io.IOException
public void print(char[] buffer, int offset, int length) throws java.io.IOException
print
in class AbstractResponseStream
java.io.IOException
public void clearBuffer()
clearBuffer
in class AbstractResponseStream
public void flushBuffer() throws java.io.IOException
flushBuffer
in class AbstractResponseStream
java.io.IOException