code: public static void addWavHeader(WaveHeader waveHeader,final String wavFilePath)throws IOException{
          if (waveHeader ==null){
              throw new IllegalArgumentException("waveHeader cannot be null");
          }
          if (wavFilePath==null || wavFilePath.trim().isEmpty()){
              throw new IllegalArgumentException("wavFilePath cannot be null, empty, blank");
          }
          RandomAccessFile randomAccessFile=new RandomAccessFile(new File(wavFilePath),"rw");
          randomAccessFile.seek(0L);
          writeWavHeader(waveHeader,randomAccessFile,new File(wavFilePath));
          randomAccessFile.close();
      }
docs: This method appends the passed in {@link com.github.republicofgavin.pauseresumeaudiorecorder.conversion.PcmWavConverter.WaveHeader} to the beginning of the passed in
  .wav file. NOTE: To prevent data from being overwritten by this method, it is advisable to write some junk data that is the size of the wav header at the beginning of the file.
  This way, only the junk data is destroyed when you are ready to add the header to the finished file.
  @param waveHeader A {@link PcmWavConverter.WaveHeader} composed of the format of data location at the pcmFilePath. Cannot be null.
  @param wavFilePath The absolute path to where the WAV file will be created. Directory path should already be created. String cannot be: null, empty, blank. It is recommended that the file have a .wav suffix.
  @throws IllegalArgumentException If the parameters are invalid.