langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2017, 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 |
53 |
53 |
54 /** |
54 /** |
55 * Constructor to construct HelpWriter object. |
55 * Constructor to construct HelpWriter object. |
56 * @param filename File to be generated. |
56 * @param filename File to be generated. |
57 */ |
57 */ |
58 public HelpWriter(ConfigurationImpl configuration, |
58 public HelpWriter(HtmlConfiguration configuration, |
59 DocPath filename) { |
59 DocPath filename) { |
60 super(configuration, filename); |
60 super(configuration, filename); |
61 } |
61 } |
62 |
62 |
63 /** |
63 /** |
66 * will get generated if and only if "-helpfile" and "-nohelp" is not used |
66 * will get generated if and only if "-helpfile" and "-nohelp" is not used |
67 * on the command line. |
67 * on the command line. |
68 * |
68 * |
69 * @throws DocFileIOException if there is a problem while generating the documentation |
69 * @throws DocFileIOException if there is a problem while generating the documentation |
70 */ |
70 */ |
71 public static void generate(ConfigurationImpl configuration) throws DocFileIOException { |
71 public static void generate(HtmlConfiguration configuration) throws DocFileIOException { |
72 DocPath filename = DocPaths.HELP_DOC; |
72 DocPath filename = DocPaths.HELP_DOC; |
73 HelpWriter helpgen = new HelpWriter(configuration, filename); |
73 HelpWriter helpgen = new HelpWriter(configuration, filename); |
74 helpgen.generateHelpFile(); |
74 helpgen.generateHelpFile(); |
75 } |
75 } |
76 |
76 |