public void close()

in src/main/java/com/spotify/sparkey/FileFlushingData.java [21:34]


  public void close() throws IOException {
    try (FileOutputStream stream = new FileOutputStream(file)) {
      stream.write(header.asBytes());
      for (byte[] chunk : chunks) {
        stream.write(chunk);
      }
      stream.flush(); // Not needed for FileOutputStream, but still semantically correct
      if (fsync) {
        stream.getFD().sync();
      }
    } finally {
      super.close();
    }
  }