50 * @since 1.2 |
50 * @since 1.2 |
51 * @author Atul M Dambalkar |
51 * @author Atul M Dambalkar |
52 * @author Robert Field |
52 * @author Robert Field |
53 */ |
53 */ |
54 public abstract class HtmlDocWriter extends HtmlWriter { |
54 public abstract class HtmlDocWriter extends HtmlWriter { |
|
55 |
|
56 public static final String CONTENT_TYPE = "text/html"; |
55 |
57 |
56 /** |
58 /** |
57 * Constructor. Initializes the destination file name through the super |
59 * Constructor. Initializes the destination file name through the super |
58 * class HtmlWriter. |
60 * class HtmlWriter. |
59 * |
61 * |
192 if (! noTimeStamp) { |
194 if (! noTimeStamp) { |
193 Content headComment = new Comment(getGeneratedByString()); |
195 Content headComment = new Comment(getGeneratedByString()); |
194 head.addContent(headComment); |
196 head.addContent(headComment); |
195 } |
197 } |
196 if (configuration.charset.length() > 0) { |
198 if (configuration.charset.length() > 0) { |
197 Content meta = HtmlTree.META("Content-Type", "text/html", |
199 Content meta = HtmlTree.META("Content-Type", CONTENT_TYPE, |
198 configuration.charset); |
200 configuration.charset); |
199 head.addContent(meta); |
201 head.addContent(meta); |
200 } |
202 } |
201 Content windowTitle = HtmlTree.TITLE(new StringContent(title)); |
203 Content windowTitle = HtmlTree.TITLE(new StringContent(title)); |
202 head.addContent(windowTitle); |
204 head.addContent(windowTitle); |