org.springframework.mock.web
Class MockHttpServletResponse.ResponsePrintWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by org.springframework.mock.web.MockHttpServletResponse.ResponsePrintWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable
Enclosing class:
MockHttpServletResponse

private class MockHttpServletResponse.ResponsePrintWriter
extends java.io.PrintWriter

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


Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MockHttpServletResponse.ResponsePrintWriter(java.io.Writer out)
           
 
Method Summary
 void flush()
           
 void write(char[] buf, int off, int len)
           
 void write(int c)
           
 void write(java.lang.String s, int off, int len)
           
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, clearError, close, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpServletResponse.ResponsePrintWriter

public MockHttpServletResponse.ResponsePrintWriter(java.io.Writer out)
Method Detail

write

public void write(char[] buf,
                  int off,
                  int len)
Overrides:
write in class java.io.PrintWriter

write

public void write(java.lang.String s,
                  int off,
                  int len)
Overrides:
write in class java.io.PrintWriter

write

public void write(int c)
Overrides:
write in class java.io.PrintWriter

flush

public void flush()
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.PrintWriter