org.springframework.mock.web
Class DelegatingServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.springframework.mock.web.DelegatingServletOutputStream
- public class DelegatingServletOutputStream
- extends ServletOutputStream
Delegating implementation of ServletOutputStream.
Used by MockHttpServletResponse; typically not
directly used for testing application controllers.
- Since:
- 1.0.2
- Author:
- Juergen Hoeller
- See Also:
MockHttpServletResponse
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingServletOutputStream
public DelegatingServletOutputStream(OutputStream targetStream)
- Create a new DelegatingServletOutputStream.
- Parameters:
targetStream
- the target OutputStream
write
public void write(int b)
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
Copyright (C) 2003-2004 The Spring Framework Project.