@Override
  public void write(int i) throws IOException {
    super.write(i);
    writtenBytesConsumer.accept(1L);
  }
{@link OutputStream} decorator that notifies the callback about the written bytes.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/CountingOutputStream.java