public class ServletResponseStreamDelegate extends Object
getOutputStream, getWriter,
flushBuffer and resetBuffer methods from the servlet response.| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletResponse |
response |
| Constructor and Description |
|---|
ServletResponseStreamDelegate(javax.servlet.ServletResponse pResponse) |
| Modifier and Type | Method and Description |
|---|---|
protected OutputStream |
createOutputStream()
Returns the
OutputStream. |
void |
flushBuffer() |
javax.servlet.ServletOutputStream |
getOutputStream() |
PrintWriter |
getWriter() |
void |
resetBuffer() |
public ServletResponseStreamDelegate(javax.servlet.ServletResponse pResponse)
public final javax.servlet.ServletOutputStream getOutputStream()
throws IOException
IOExceptionpublic final PrintWriter getWriter() throws IOException
IOExceptionprotected OutputStream createOutputStream() throws IOException
OutputStream.
Subclasses should override this method to provide a decorated output stream.
This method is guaranteed to be invoked only once for a request/response
(unless resetBuffer is invoked).
This implementation simply returns the output stream from the wrapped
response.OutputStream to use for the responseIOException - if an I/O exception occurspublic void flushBuffer()
throws IOException
IOExceptionpublic void resetBuffer()
Copyright © 2017. All rights reserved.