org.springframework.mock.web
Class MockHttpServletResponse.ResponseServletOutputStream

java.lang.Object
  extended by ServletOutputStream
      extended by org.springframework.mock.web.DelegatingServletOutputStream
          extended by org.springframework.mock.web.MockHttpServletResponse.ResponseServletOutputStream
Enclosing class:
MockHttpServletResponse

private class MockHttpServletResponse.ResponseServletOutputStream
extends DelegatingServletOutputStream

Inner class that adapts the ServletOutputStream to mark the response as committed once the buffer size is exceeded.


Constructor Summary
MockHttpServletResponse.ResponseServletOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void flush()
           
 void write(int b)
           
 
Methods inherited from class org.springframework.mock.web.DelegatingServletOutputStream
close, getTargetStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpServletResponse.ResponseServletOutputStream

public MockHttpServletResponse.ResponseServletOutputStream(java.io.OutputStream out)
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class DelegatingServletOutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class DelegatingServletOutputStream
Throws:
java.io.IOException