FileDocCategorySizeDatePackage
PackagesFileWriter.javaAPI DocExample2110Wed Apr 19 11:17:14 BST 2000com.sun.tools.doclets.standard

PackagesFileWriter

public class PackagesFileWriter extends HtmlStandardWriter
Generate the "packages.html" file for the backward compatibility.
author
Atul M Dambalkar

Fields Summary
Constructors Summary
public PackagesFileWriter(String filename)
Constructor.

        super(filename);
    
Methods Summary
public static voidgenerate()
Generate the file.

        PackagesFileWriter packgen;
        String filename = "";
        try {
            filename = "packages.html";
            packgen = new PackagesFileWriter(filename);
            packgen.generatePackagesFile();
            packgen.close();
        } catch (IOException exc) {
            Standard.configuration().standardmessage.error(
                "doclet.exception_encountered",
                exc.toString(), filename);
            throw new DocletAbortException();
        }
    
protected voidgeneratePackagesFile()
Generate the packages file.

        printHeader(getText("doclet.Window_Packages_title",
                            Standard.configuration().windowtitle));

        printPackagesFileContents();

        printBodyHtmlEnd();
    
protected voidprintPackagesFileContents()
Print the pacakges file contents.

        br(); br(); br();
        center(); 
        printText("doclet.Packages_File_line_1"); 
        printText("doclet.Packages_File_line_2");
        br(); printNbsps();
        printHyperLink("index.html", getText("doclet.Frame_Version"));
        br(); printNbsps();
        printHyperLink(Standard.configuration().topFile,
                       getText("doclet.Non_Frame_Version"));
        centerEnd();