code: public void write(String outputLocation, Format format) throws ReportException {
          if (format == Format.ALL) {
              for (Format f : Format.values()) {
                  if (f != Format.ALL) {
                      write(outputLocation, f);
                  }
              }
          } else {
              final File out = getReportFile(outputLocation, format);
              final String templateName = format.toString().toLowerCase() + "Report";
              processTemplate(templateName, out);
              if (format == Format.JSON) {
                  pretifyJson(out.getPath());
              }
          }
      }
docs: Writes the dependency-check report(s).
  
  @param outputLocation the path where the reports should be written
  @param format the format the report should be written in (XML, HTML, ALL)
  @throws ReportException is thrown if there is an error creating out the
  reports