public class RegExFilterOutputStream extends OutputStream
OutputStream
.SafeOutputStream
Constructor and Description |
---|
RegExFilterOutputStream(OutputStream o,
String regex)
Creates a new
RegExFilterOutputStream . |
public RegExFilterOutputStream(OutputStream o, String regex)
RegExFilterOutputStream
.o
- the internal OutputStream
regex
- the regular expression used to filter each line of the outputString.matches(String)
public void write(int b) throws IOException
write
in class OutputStream
IOException