org.springframework.mock.web
Class DelegatingServletOutputStream
java.lang.Object
   java.io.OutputStream
java.io.OutputStream
       javax.servlet.ServletOutputStream
javax.servlet.ServletOutputStream
           org.springframework.mock.web.DelegatingServletOutputStream
org.springframework.mock.web.DelegatingServletOutputStream
- All Implemented Interfaces: 
- Closeable, Flushable
- 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 DelegatingServletOutputStream for the given target stream.
 
- Parameters:
- targetStream- the target stream (never- null)
 
getTargetStream
public final OutputStream getTargetStream()
- Return the underlying target stream (never null).
 
- 
 
write
public void write(int b)
           throws IOException
- 
- Specified by:
- writein class- OutputStream
 
- 
- Throws:
- IOException
 
flush
public void flush()
           throws IOException
- 
- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- OutputStream
 
- 
- Throws:
- IOException
 
close
public void close()
           throws IOException
- 
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- OutputStream
 
- 
- Throws:
- IOException
 
Copyright © 2002-2008 The Spring Framework.