src/share/classes/com/sun/tools/doclets/internal/toolkit/Configuration.java

changeset 1412
400a4e8accd3
parent 1410
bfec2a1cc869
child 1413
bdcef2ef52d2
equal deleted inserted replaced
1411:467f4f754368 1412:400a4e8accd3
30 30
31 import com.sun.javadoc.*; 31 import com.sun.javadoc.*;
32 import com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory; 32 import com.sun.tools.doclets.internal.toolkit.builders.BuilderFactory;
33 import com.sun.tools.doclets.internal.toolkit.taglets.*; 33 import com.sun.tools.doclets.internal.toolkit.taglets.*;
34 import com.sun.tools.doclets.internal.toolkit.util.*; 34 import com.sun.tools.doclets.internal.toolkit.util.*;
35 import javax.tools.JavaFileManager;
35 36
36 /** 37 /**
37 * Configure the output based on the options. Doclets should sub-class 38 * Configure the output based on the options. Doclets should sub-class
38 * Configuration, to configure and add their own options. This class contains 39 * Configuration, to configure and add their own options. This class contains
39 * all user options which are supported by the 1.1 doclet and the standard 40 * all user options which are supported by the 1.1 doclet and the standard
750 * Return the input stream to the builder XML. 751 * Return the input stream to the builder XML.
751 * 752 *
752 * @return the input steam to the builder XML. 753 * @return the input steam to the builder XML.
753 * @throws FileNotFoundException when the given XML file cannot be found. 754 * @throws FileNotFoundException when the given XML file cannot be found.
754 */ 755 */
755 public InputStream getBuilderXML() throws FileNotFoundException { 756 public InputStream getBuilderXML() throws IOException {
756 return builderXMLPath == null ? 757 return builderXMLPath == null ?
757 Configuration.class.getResourceAsStream(DEFAULT_BUILDER_XML) : 758 Configuration.class.getResourceAsStream(DEFAULT_BUILDER_XML) :
758 DocFile.createFileForInput(this, builderXMLPath).openInputStream(); 759 DocFile.createFileForInput(this, builderXMLPath).openInputStream();
759 } 760 }
760 761
762 * Return the Locale for this document. 763 * Return the Locale for this document.
763 */ 764 */
764 public abstract Locale getLocale(); 765 public abstract Locale getLocale();
765 766
766 /** 767 /**
768 * Return the current file manager.
769 */
770 public abstract JavaFileManager getFileManager();
771
772 /**
767 * Return the comparator that will be used to sort member documentation. 773 * Return the comparator that will be used to sort member documentation.
768 * To no do any sorting, return null. 774 * To no do any sorting, return null.
769 * 775 *
770 * @return the {@link java.util.Comparator} used to sort members. 776 * @return the {@link java.util.Comparator} used to sort members.
771 */ 777 */

mercurial