src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocWriter.java

changeset 197
1bf037016426
parent 182
47a62d8d98b4
child 229
03bcd66bd8e7
child 233
5240b1120530
equal deleted inserted replaced
196:1ca2dc8584e1 197:1bf037016426
23 * have any questions. 23 * have any questions.
24 */ 24 */
25 25
26 package com.sun.tools.doclets.formats.html.markup; 26 package com.sun.tools.doclets.formats.html.markup;
27 27
28 import com.sun.tools.doclets.internal.toolkit.*;
29
30 import com.sun.javadoc.*;
31 import java.io.*; 28 import java.io.*;
32 import java.util.*; 29 import java.util.*;
33 import com.sun.tools.doclets.internal.toolkit.util.*; 30
31 import com.sun.javadoc.*;
32 import com.sun.tools.doclets.internal.toolkit.*;
34 33
35 34
36 /** 35 /**
37 * Class for the Html Format Code Generation specific to JavaDoc. 36 * Class for the Html Format Code Generation specific to JavaDoc.
38 * This Class contains methods related to the Html Code Generation which 37 * This Class contains methods related to the Html Code Generation which
54 public HtmlDocWriter(Configuration configuration, 53 public HtmlDocWriter(Configuration configuration,
55 String filename) throws IOException { 54 String filename) throws IOException {
56 super(configuration, 55 super(configuration,
57 null, configuration.destDirName + filename, 56 null, configuration.destDirName + filename,
58 configuration.docencoding); 57 configuration.docencoding);
58 // use File to normalize file separators
59 configuration.message.notice("doclet.Generating_0", 59 configuration.message.notice("doclet.Generating_0",
60 configuration.destDirName + filename); 60 new File(configuration.destDirName, filename));
61 } 61 }
62 62
63 public HtmlDocWriter(Configuration configuration, 63 public HtmlDocWriter(Configuration configuration,
64 String path, String filename) throws IOException { 64 String path, String filename) throws IOException {
65 super(configuration, 65 super(configuration,
66 configuration.destDirName + path, filename, 66 configuration.destDirName + path, filename,
67 configuration.docencoding); 67 configuration.docencoding);
68 // use File to normalize file separators
68 configuration.message.notice("doclet.Generating_0", 69 configuration.message.notice("doclet.Generating_0",
69 configuration.destDirName + 70 new File(configuration.destDirName,
70 ((path.length() > 0)? 71 ((path.length() > 0)? path + File.separator: "") + filename));
71 path + File.separator: "") + filename);
72 } 72 }
73 73
74 /** 74 /**
75 * Accessor for configuration. 75 * Accessor for configuration.
76 */ 76 */

mercurial