public abstract class ToCharResponseStream extends AbstractResponseStream
| Constructor and Description |
|---|
ToCharResponseStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBuffer()
Flushes the buffer.
|
void |
flushBuffer()
Flushes the buffer.
|
void |
flushChar()
Flushes the buffer.
|
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 offset.
|
abstract java.lang.String |
getEncoding()
Returns the encoding.
|
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)
Converts the 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 byte buffer offset.
|
void |
setBufferSize(int size)
Sets the buffer size.
|
void |
setCharOffset(int offset)
Sets the char offset.
|
void |
start()
Initializes the Buffered Response stream at the beginning of a request.
|
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.
|
protected abstract void |
writeNext(char[] buffer,
int offset,
int length)
Writes to the next.
|
clear, close, closeImpl, completeCache, flush, flushByte, flushNext, getByteCacheStream, getCharCacheStream, getContentLength, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setByteCacheStream, setCauchoResponse, setCharCacheStream, setCommitted, setEncoding, setHead, setLocale, setOutputStreamOnly, toClosing, toStringpublic void start()
start in class AbstractResponseStreampublic 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)
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 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 int getBufferOffset()
getBufferOffset in class OutputStreamWithBufferpublic void setBufferOffset(int offset)
setBufferOffset in class OutputStreamWithBufferpublic byte[] getBuffer()
getBuffer in class OutputStreamWithBufferpublic byte[] nextBuffer(int offset)
throws java.io.IOException
nextBuffer in class OutputStreamWithBufferjava.io.IOExceptionpublic void write(byte[] buf,
int offset,
int length)
throws java.io.IOException
write in interface ByteAppendablewrite in class AbstractResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the bufferjava.io.IOExceptionpublic void write(int ch)
throws java.io.IOException
write in interface ByteAppendablewrite in class AbstractResponseStreambuf - the buffer containing the dataoffset - start offset into the bufferlength - length of the data in the bufferjava.io.IOExceptionpublic void flushBuffer()
throws java.io.IOException
flushBuffer in class AbstractResponseStreamjava.io.IOExceptionpublic void flushChar()
throws java.io.IOException
flushChar in class AbstractResponseStreamjava.io.IOExceptionpublic void clearBuffer()
clearBuffer in class AbstractResponseStreampublic abstract java.lang.String getEncoding()
getEncoding in class AbstractResponseStreamprotected abstract void writeNext(char[] buffer,
int offset,
int length)
throws java.io.IOException
java.io.IOException