public class

DelegatingServletOutputStream

extends ServletOutputStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ javax.servlet.ServletOutputStream
       ↳ org.springframework.mock.web.DelegatingServletOutputStream

Class Overview

Delegating implementation of javax.servlet.ServletOutputStream.

Used by MockHttpServletResponse; typically not directly used for testing application controllers.

Summary

Public Constructors
DelegatingServletOutputStream(OutputStream targetStream)
Create a DelegatingServletOutputStream for the given target stream.
Public Methods
void close()
void flush()
final OutputStream getTargetStream()
Return the underlying target stream (never null).
void write(int b)
[Expand]
Inherited Methods
From class javax.servlet.ServletOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable

Public Constructors

public DelegatingServletOutputStream (OutputStream targetStream)

Create a DelegatingServletOutputStream for the given target stream.

Parameters
targetStream the target stream (never null)

Public Methods

public void close ()

Throws
IOException

public void flush ()

Throws
IOException

public final OutputStream getTargetStream ()

Return the underlying target stream (never null).

public void write (int b)

Throws
IOException