code: public void convertPackage(PackageElement pkg, DocPath outputdir)
              throws DocFileIOException, SimpleDocletException {
          if (pkg == null) {
              return;
          }
          for (Element te : utils.getAllClasses(pkg)) {
              // If -nodeprecated option is set and the class is marked as deprecated,
              // do not convert the package files to HTML. We do not check for
              // containing package deprecation since it is already check in
              // the calling method above.
              if (!(configuration.nodeprecated && utils.isDeprecated(te)))
                  convertClass((TypeElement)te, outputdir);
          }
      }
docs: Convert the Classes in the given Package to an HTML file.
  
  @param pkg the Package to convert.
  @param outputdir the name of the directory to output to.
  @throws DocFileIOException if there is a problem generating an output file
  @throws SimpleDocletException if there is a problem reading a source file