code: public static void write(final VcfHeader header,
                               final List<VcfSample> samples,
                               final List<VcfRecord> records,
                               final PrintWriter writer) {
  
          writeHeader(header, writer);
          writeColumnHeader(samples, writer);
          writeRecords(samples, records, writer);
      }
docs: Write VCF with the specified print writer.
  
  @param header VCF header, must not be null
  @param samples zero or more VCF samples, must not be null
  @param records zero or more VCF records, must not be null
  @param writer print writer to write VCF with, must not be null