org.slim3.struts.test
Class MockServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.slim3.struts.test.MockServletOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class MockServletOutputStream
- extends ServletOutputStream
An implementation for ServletOutputStream
.
- Since:
- 3.0
- Author:
- higa
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputStream
protected OutputStream outputStream
- The original output stream.
MockServletOutputStream
public MockServletOutputStream(OutputStream outputStream)
throws NullPointerException
- Constructor.
- Parameters:
outputStream
- the original output stream
- Throws:
NullPointerException
- if the outputStream parameter is null
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.