src/main/java/org/apache/datasketches/characterization/hll/HllJavaCppGenerator.java [217:230]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private static void writeByteArrayToFile(final byte[] arr, final String fullFileName) {
    Files.checkFileName(fullFileName); //checks for null, empty
    final File file = new File(fullFileName);
    if (file.exists() && file.isFile()) {
      file.delete();
    }
    try (FileOutputStream fos = new FileOutputStream(file)) {
      fos.write(arr);
      fos.flush();
      fos.close();
    } catch (final IOException e) {
      throw new IllegalArgumentException(e);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/datasketches/Files.java [1080:1093]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static void writeByteArrayToFile(final byte[] arr, final String fullFileName) {
    Files.checkFileName(fullFileName); //checks for null, empty
    final File file = new File(fullFileName);
    if (file.exists() && file.isFile()) {
      file.delete();
    }
    try (FileOutputStream fos = new FileOutputStream(file)) {
      fos.write(arr);
      fos.flush();
      fos.close();
    } catch (final IOException e) {
      throw new IllegalArgumentException(e);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/datasketches/DumpSketchSegment.java [65:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  private static void writeByteArrayToFile(final byte[] arr, final String fullFileName) {
    Files.checkFileName(fullFileName); //checks for null, empty
    final File file = new File(fullFileName);
    if (file.exists() && file.isFile()) {
      file.delete();
    }
    try (FileOutputStream fos = new FileOutputStream(file)) {
      fos.write(arr);
      fos.flush();
      fos.close();
    } catch (final IOException e) {
      throw new IllegalArgumentException(e);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



