public class ServletResponseStreamDelegate extends Object
getOutputStream
, getWriter
,
flushBuffer
and resetBuffer
methods from the servlet response.Modifier and Type | Field | Description |
---|---|---|
protected javax.servlet.ServletResponse |
response |
Constructor | Description |
---|---|
ServletResponseStreamDelegate(javax.servlet.ServletResponse pResponse) |
Modifier and Type | Method | 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
IOException
public final PrintWriter getWriter() throws IOException
IOException
protected 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
IOException
public void resetBuffer()
Copyright © 2018. All rights reserved.