langtools/src/share/classes/com/sun/tools/doclets/formats/html/WriterFactoryImpl.java
changeset 15723 58a73dac9ee4
parent 14542 7062120649c2
child 16319 e586bfeb39c5
equal deleted inserted replaced
15167:f627eff81962 15723:58a73dac9ee4
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    26 package com.sun.tools.doclets.formats.html;
    26 package com.sun.tools.doclets.formats.html;
    27 
    27 
    28 import java.io.IOException;
    28 import java.io.IOException;
    29 
    29 
    30 import com.sun.javadoc.*;
    30 import com.sun.javadoc.*;
       
    31 import com.sun.tools.javac.jvm.Profile;
    31 import com.sun.tools.doclets.internal.toolkit.*;
    32 import com.sun.tools.doclets.internal.toolkit.*;
    32 import com.sun.tools.doclets.internal.toolkit.util.*;
    33 import com.sun.tools.doclets.internal.toolkit.util.*;
    33 
    34 
    34 /**
    35 /**
    35  * The factory that returns HTML writers.
    36  * The factory that returns HTML writers.
    62      */
    63      */
    63     public PackageSummaryWriter getPackageSummaryWriter(PackageDoc packageDoc,
    64     public PackageSummaryWriter getPackageSummaryWriter(PackageDoc packageDoc,
    64         PackageDoc prevPkg, PackageDoc nextPkg) throws Exception {
    65         PackageDoc prevPkg, PackageDoc nextPkg) throws Exception {
    65         return new PackageWriterImpl(configuration, packageDoc,
    66         return new PackageWriterImpl(configuration, packageDoc,
    66             prevPkg, nextPkg);
    67             prevPkg, nextPkg);
       
    68     }
       
    69 
       
    70     /**
       
    71      * {@inheritDoc}
       
    72      */
       
    73     public ProfileSummaryWriter getProfileSummaryWriter(Profile profile,
       
    74         Profile prevProfile, Profile nextProfile) throws Exception {
       
    75         return new ProfileWriterImpl(configuration, profile,
       
    76             prevProfile, nextProfile);
       
    77     }
       
    78 
       
    79     /**
       
    80      * {@inheritDoc}
       
    81      */
       
    82     public ProfilePackageSummaryWriter getProfilePackageSummaryWriter(PackageDoc packageDoc,
       
    83         PackageDoc prevPkg, PackageDoc nextPkg, Profile profile) throws Exception {
       
    84         return new ProfilePackageWriterImpl(configuration, packageDoc,
       
    85             prevPkg, nextPkg, profile);
    67     }
    86     }
    68 
    87 
    69     /**
    88     /**
    70      * {@inheritDoc}
    89      * {@inheritDoc}
    71      */
    90      */