org.springframework.mock.web
Class DelegatingServletOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byorg.springframework.mock.web.DelegatingServletOutputStream

public class DelegatingServletOutputStream
extends javax.servlet.ServletOutputStream

Delegating implementation of ServletOutputStream.

Used by MockHttpServletResponse; typically not necessary for testing application controllers.

Since:
27.04.2004
Author:
Juergen Hoeller
See Also:
MockHttpServletResponse

Constructor Summary
DelegatingServletOutputStream(java.io.OutputStream targetStream)
          Create a new DelegatingServletOutputStream.
 
Method Summary
 void close()
           
 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
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingServletOutputStream

public DelegatingServletOutputStream(java.io.OutputStream targetStream)
Create a new DelegatingServletOutputStream.

Parameters:
targetStream - the target OutputStream
Method Detail

write

public void write(int b)
           throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException


Copyright (C) 2003-2004 The Spring Framework Project.