|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream javax.servlet.ServletOutputStream org.jboss.seam.mock.DelegatingServletOutputStream
public class DelegatingServletOutputStream
Delegating implementation of ServletOutputStream
.
Used by MockHttpServletResponse
; typically not directly
used for testing application controllers.
MockHttpServletResponse
Constructor Summary | |
---|---|
DelegatingServletOutputStream(OutputStream targetStream)
Create a DelegatingServletOutputStream for the given target stream. |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
OutputStream |
getTargetStream()
Return the underlying target stream (never null ). |
void |
write(int b)
|
Methods inherited from class javax.servlet.ServletOutputStream |
---|
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println |
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingServletOutputStream(OutputStream targetStream)
targetStream
- the target stream (never null
)Method Detail |
---|
public final OutputStream getTargetStream()
null
).
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |