@Override
  public void write(byte[] b, int off, int len) throws IOException {
    super.write(b, off, len);
    writtenBytesConsumer.accept(len);
  }
{@link OutputStream} decorator that notifies the callback about the written bytes.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/CountingOutputStream.java