org.pentaho.test.platform.engine.core
Class ExceptionOutputStream
java.lang.Object
java.io.OutputStream
org.pentaho.test.platform.engine.core.ExceptionOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class ExceptionOutputStream
- extends OutputStream
An output stream that throws an IOException on every operation.
Used for testing purposes.
- Author:
- James Dixon
Method Summary |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
ExceptionOutputStream
public ExceptionOutputStream()
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException