|
||||||||||
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.jsp.BodyResponseStream
public class BodyResponseStream
Constructor Summary | |
---|---|
BodyResponseStream()
|
Method Summary | |
---|---|
void |
clearBuffer()
Clears the buffer. |
void |
flushBuffer()
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 buffer offset. |
java.lang.String |
getEncoding()
|
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[] buf,
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 |
setEncoding(java.lang.String encoding)
Sets the encoding. |
void |
setWriter(java.io.Writer out)
|
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.http.AbstractResponseStream |
---|
clear, close, closeImpl, completeCache, flush, flushByte, flushChar, flushNext, getByteCacheStream, getCharCacheStream, getContentLength, isAutoFlush, isCloseComplete, isClosed, isClosing, isCommitted, isHead, killCaching, sendFile, setAutoFlush, setByteCacheStream, setCauchoResponse, setCharCacheStream, setCommitted, 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 BodyResponseStream()
Method Detail |
---|
public boolean isCauchoResponseStream()
isCauchoResponseStream
in class AbstractResponseStream
public void setWriter(java.io.Writer out)
public java.lang.String getEncoding()
getEncoding
in class AbstractResponseStream
public void setEncoding(java.lang.String encoding)
AbstractResponseStream
setEncoding
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 char[] getCharBuffer()
getCharBuffer
in class AbstractResponseStream
public int getCharOffset()
getCharOffset
in class AbstractResponseStream
public void setCharOffset(int offset)
setCharOffset
in class AbstractResponseStream
public char[] nextCharBuffer(int offset) throws java.io.IOException
nextCharBuffer
in class AbstractResponseStream
java.io.IOException
public void print(char[] buf, int offset, int length) throws java.io.IOException
print
in class AbstractResponseStream
buf
- the buffer containing the dataoffset
- start offset into the bufferlength
- length of the data in the buffer
java.io.IOException
public void print(int ch) throws java.io.IOException
print
in class AbstractResponseStream
buf
- the buffer containing the dataoffset
- start offset into the bufferlength
- length of the data in the buffer
java.io.IOException
public int getBufferOffset()
getBufferOffset
in class OutputStreamWithBuffer
public void setBufferOffset(int offset)
setBufferOffset
in class OutputStreamWithBuffer
public byte[] getBuffer()
getBuffer
in class OutputStreamWithBuffer
public byte[] nextBuffer(int offset) throws java.io.IOException
nextBuffer
in class OutputStreamWithBuffer
java.io.IOException
public void write(byte[] buf, int offset, int length) throws java.io.IOException
write
in interface ByteAppendable
write
in class AbstractResponseStream
buf
- the buffer containing the dataoffset
- start offset into the bufferlength
- length of the data in the buffer
java.io.IOException
public void write(int ch) throws java.io.IOException
write
in interface ByteAppendable
write
in class AbstractResponseStream
ch
- - character to write
java.io.IOException
public void flushBuffer() throws java.io.IOException
flushBuffer
in class AbstractResponseStream
java.io.IOException
public void clearBuffer()
clearBuffer
in class AbstractResponseStream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |