docs: public void setFile(File file) {
      String fileName = file.getName().toLowerCase(Locale.ROOT);
      if (fileName.matches(".*\\.htm(l)?$")) {
        method = OutputMethod.HTML;
      } else {
        if (fileName.matches(".*\\.jsonp")) {
          method = OutputMethod.JSONP;
        } else {
          method = OutputMethod.JSON;
        }
      }
      this.targetFile = file;
    }