code: private void readPackageListFromFile(String path, DocFile pkgListPath)
              throws Fault {
          DocFile file = pkgListPath.resolve(DocPaths.PACKAGE_LIST);
          if (! (file.isAbsolute() || linkoffline)){
              file = file.resolveAgainst(DocumentationTool.Location.DOCUMENTATION_OUTPUT);
          }
          try {
              if (file.exists() && file.canRead()) {
                  boolean pathIsRelative =
                          !DocFile.createFileForInput(configuration, path).isAbsolute()
                          && !isUrl(path);
                  readPackageList(file.openInputStream(), path, pathIsRelative);
              } else {
                  throw new Fault(configuration.getText("doclet.File_error", file.getPath()), null);
              }
          } catch (IOException exc) {
             throw new Fault(configuration.getText("doclet.File_error", file.getPath()), exc);
          }
      }
docs: Read the "package-list" file which is available locally.
  
  @param path URL or directory path to the packages.
  @param pkgListPath Path to the local "package-list" file.