org.slim3.struts.test
Class MockServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.slim3.struts.test.MockServletOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class MockServletOutputStream
extends ServletOutputStream

An implementation for ServletOutputStream.

Since:
3.0
Author:
higa

Field Summary
protected  OutputStream outputStream
          The original output stream.
 
Constructor Summary
MockServletOutputStream(OutputStream outputStream)
          Constructor.
 
Method Summary
 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
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputStream

protected OutputStream outputStream
The original output stream.

Constructor Detail

MockServletOutputStream

public MockServletOutputStream(OutputStream outputStream)
                        throws NullPointerException
Constructor.

Parameters:
outputStream - the original output stream
Throws:
NullPointerException - if the outputStream parameter is null
Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.