code: public void printHtmlDocument(String[] metakeywords, boolean includeScript,
              Content body) throws IOException {
          Content htmlDocType = configuration.isOutputHtml5()
                  ? DocType.HTML5
                  : DocType.TRANSITIONAL;
          Content htmlComment = new Comment(configuration.getText("doclet.New_Page"));
          Content head = new HtmlTree(HtmlTag.HEAD);
          head.addContent(getGeneratedBy(!configuration.notimestamp));
          head.addContent(getTitle());
          Content meta = HtmlTree.META("Content-Type", CONTENT_TYPE,
                  (configuration.charset.length() > 0) ?
                          configuration.charset : HtmlConstants.HTML_DEFAULT_CHARSET);
          head.addContent(meta);
          if (!configuration.notimestamp) {
              SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
              meta = HtmlTree.META(configuration.isOutputHtml5()
                      ? "dc.created"
                      : "date", dateFormat.format(new Date()));
              head.addContent(meta);
          }
          if (metakeywords != null) {
              for (String metakeyword : metakeywords) {
                  meta = HtmlTree.META("keywords", metakeyword);
                  head.addContent(meta);
              }
          }
          addStyleSheetProperties(head);
          addScriptProperties(head);
          Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(),
                  head, body);
          Content htmlDocument = new HtmlDocument(htmlDocType,
                  htmlComment, htmlTree);
          write(htmlDocument);
      }
docs: Generates the HTML document tree and prints it out.
  
  @param metakeywords Array of String keywords for META tag. Each element
  of the array is assigned to a separate META tag.
  Pass in null for no array
  @param includeScript true if printing windowtitle script
  false for files that appear in the left-hand frames
  @param body the body htmltree to be included in the document