|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.ServletResponseWrapper org.zkoss.web.servlet.BufferedResponse
public class BufferedResponse
A servlet response that uses another writer or stream as the output.
Method Summary | |
---|---|
void |
flushBuffer()
|
static javax.servlet.ServletResponse |
getInstance(javax.servlet.ServletResponse response,
java.io.OutputStream stream)
Returns a buffered response with a output stream, if stream is not null; or the original response if stream is null. |
static javax.servlet.ServletResponse |
getInstance(javax.servlet.ServletResponse response,
java.io.Writer writer)
Returns a buffered response with a writer, if writer is not null; or the original response if writer is null. |
javax.servlet.ServletOutputStream |
getOutputStream()
|
java.io.PrintWriter |
getWriter()
|
void |
resetBuffer()
Useful only if StringWriter or ByteArrayOutputStream is used to construct this object. |
Methods inherited from class javax.servlet.ServletResponseWrapper |
---|
getBufferSize, getCharacterEncoding, getContentType, getLocale, getResponse, isCommitted, reset, setBufferSize, setCharacterEncoding, setContentLength, setContentType, setLocale, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final javax.servlet.ServletResponse getInstance(javax.servlet.ServletResponse response, java.io.Writer writer)
HttpBufferedResponse.getInstance(javax.servlet.http.HttpServletResponse, java.io.Writer)
is returned.
It is smart enough not to wrap the same writer twice.
public static final javax.servlet.ServletResponse getInstance(javax.servlet.ServletResponse response, java.io.OutputStream stream)
HttpBufferedResponse.getInstance(javax.servlet.http.HttpServletResponse, java.io.Writer)
is returned.
It is smart enough not to wrap the same stream twice.
public java.io.PrintWriter getWriter() throws java.io.IOException
getWriter
in interface javax.servlet.ServletResponse
getWriter
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public javax.servlet.ServletOutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.servlet.ServletResponse
getOutputStream
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public void flushBuffer() throws java.io.IOException
flushBuffer
in interface javax.servlet.ServletResponse
flushBuffer
in class javax.servlet.ServletResponseWrapper
java.io.IOException
public void resetBuffer()
resetBuffer
in interface javax.servlet.ServletResponse
resetBuffer
in class javax.servlet.ServletResponseWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |