net.sf.farrago.test
Class FarragoTestCase.ReplacingOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
net.sf.farrago.test.FarragoTestCase.ReplacingOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
- Enclosing class:
- FarragoTestCase
private static class FarragoTestCase.ReplacingOutputStream
- extends FilterOutputStream
Stream which applies regular expression replacement to its contents.
Lame implementation which buffers its input and applies replacement
only when close()
is called.
Method Summary |
void |
close()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputStream
private final OutputStream outputStream
seekPattern
private final String seekPattern
replace
private final String replace
FarragoTestCase.ReplacingOutputStream
public FarragoTestCase.ReplacingOutputStream(OutputStream outputStream,
String seekPattern,
String replace)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FilterOutputStream
- Throws:
IOException