class ErrorFilteredConsumer implements LineConsumer {

  @Override
  public void writeLine(String line) throws IOException {
    if (errorIndicator.isError(line)) {
      lineConsumer.writeLine(line);
    }
  }

  public  ErrorFilteredConsumer(ErrorIndicator errorIndicator, LineConsumer lineConsumer);
  public  ErrorFilteredConsumer(LineConsumer lineConsumer);

}