docs: public void writeToOutputStream(OutputStream outputStream, PersistenceFormat persistenceFormat) throws IOException {
      requireNonNull(outputStream);
      requireNonNull(persistenceFormat);
  
      @SuppressWarnings({ "unchecked", "rawtypes" })
      JSONObject jsonObject = new JSONObject((Map) hashedUrlsByUrl());
      String json = jsonObject.toString(persistenceFormat == PersistenceFormat.COMPACT ? 0 : 2);
  
      copyStream(new ByteArrayInputStream(json.getBytes(UTF_8)), outputStream);
    }