Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.seam.mock
Class DelegatingServletOutputStream

    java.lang.Object
      java.io.OutputStream
          javax.servlet.ServletOutputStream
              org.jboss.seam.mock.DelegatingServletOutputStream

All Implemented Interfaces:
  Closeable, Flushable

    public class DelegatingServletOutputStream

extends javax.servlet.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`

Constructor Summary
`DelegatingServletOutputStream(OutputStream targetStream)` Create a DelegatingServletOutputStream for the given target stream.

Method Summary
`void` | `close()`
`void` | `flush()`
`OutputStream` | `getTargetStream()` Return the underlying target stream (never `null`).
`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
`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(OutputStream targetStream)

  Create a DelegatingServletOutputStream for the given target stream.

  Parameters:
    `targetStream` - the target stream (never `null`)

Method Detail

### getTargetStream

    public final OutputStream getTargetStream()

  Return the underlying target stream (never `null`).

### write

    public void write(int b)
               throws IOException

  Specified by:
    `write` in class `OutputStream`
  Throws:
    `IOException`

### flush

    public void flush()
               throws IOException

  Specified by:
    `flush` in interface `Flushable`
  Overrides:
    `flush` in class `OutputStream`
  Throws:
    `IOException`

### close

    public void close()
               throws IOException

  Specified by:
    `close` in interface `Closeable`
  Overrides:
    `close` in class `OutputStream`
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Seam Core JSF2 2.3.0.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 Seam Framework. All Rights Reserved.