docs: public static File writeToTempFile(ByteBuffer byteBuffer, String prefix, String suffix) throws IOException {
          File tmpOutputFile = null;
  
          try (RandomAccessFile outputRaf = new RandomAccessFile(tmpOutputFile, "rw")) {
              // Create temporary file
              tmpOutputFile = File.createTempFile(prefix, "." + suffix);
              FileChannel outputChannel = outputRaf.getChannel();
  
              outputChannel.write(byteBuffer);
  
          } catch (IOException ioe) {
              String info = "Failed to write to temporary file: " + ioe.getMessage();
              throw new IOException(info, ioe);
          }
          return tmpOutputFile;
      }