org.springframework.extensions.surf.util
Class FakeHttpServletResponse.DelegatingServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.springframework.extensions.surf.util.FakeHttpServletResponse.DelegatingServletOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
FakeHttpServletResponse

public class FakeHttpServletResponse.DelegatingServletOutputStream
extends javax.servlet.ServletOutputStream

The Class DelegatingServletOutputStream.


Constructor Summary
FakeHttpServletResponse.DelegatingServletOutputStream(OutputStream targetStream)
          Instantiates a new delegating servlet output stream.
 
Method Summary
 void close()
           
 void flush()
           
 OutputStream getTargetStream()
          Gets the target stream.
 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

FakeHttpServletResponse.DelegatingServletOutputStream

public FakeHttpServletResponse.DelegatingServletOutputStream(OutputStream targetStream)
Instantiates a new delegating servlet output stream.

Parameters:
targetStream - the target stream
Method Detail

getTargetStream

public OutputStream getTargetStream()
Gets the target stream.

Returns:
the target stream

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


Copyright © 2009 SpringSource, Inc. All Rights Reserved.