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

changeset 240
8c55d5b0ed71
parent 229
03bcd66bd8e7
parent 233
5240b1120530
child 243
edd944553131
equal deleted inserted replaced
230:2c0076945b1a 240:8c55d5b0ed71
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 java.io.*;
29
28 import com.sun.tools.doclets.internal.toolkit.*; 30 import com.sun.tools.doclets.internal.toolkit.*;
29 import com.sun.tools.doclets.internal.toolkit.util.*; 31 import com.sun.tools.doclets.internal.toolkit.util.*;
30 import java.io.*;
31 32
32 /** 33 /**
33 * Class for the Html format code generation. 34 * Class for the Html format code generation.
34 * Initilizes PrintWriter with FileWriter, to enable print 35 * Initilizes PrintWriter with FileWriter, to enable print
35 * related methods to generate the code to the named File through FileWriter. 36 * related methods to generate the code to the named File through FileWriter.
59 * The configuration 60 * The configuration
60 */ 61 */
61 protected Configuration configuration; 62 protected Configuration configuration;
62 63
63 /** 64 /**
65 * The flag to indicate whether a member details list is printed or not.
66 */
67 protected boolean memberDetailsListPrinted;
68
69 /**
64 * Constructor. 70 * Constructor.
65 * 71 *
66 * @param path The directory path to be created for this file 72 * @param path The directory path to be created for this file
67 * or null if none to be created. 73 * or null if none to be created.
68 * @param filename File Name to which the PrintWriter will 74 * @param filename File Name to which the PrintWriter will
77 String path, String filename, String docencoding) 83 String path, String filename, String docencoding)
78 throws IOException, UnsupportedEncodingException { 84 throws IOException, UnsupportedEncodingException {
79 super(Util.genWriter(configuration, path, filename, docencoding)); 85 super(Util.genWriter(configuration, path, filename, docencoding));
80 this.configuration = configuration; 86 this.configuration = configuration;
81 htmlFilename = filename; 87 htmlFilename = filename;
88 this.memberDetailsListPrinted = false;
82 } 89 }
83 90
84 /** 91 /**
85 * Print <HTML> tag. Add a newline character at the end. 92 * Print <HTML> tag. Add a newline character at the end.
86 */ 93 */
527 public void dt() { 534 public void dt() {
528 print("<DT>"); 535 print("<DT>");
529 } 536 }
530 537
531 /** 538 /**
532 * Print &lt;DT&gt; tag. 539 * Print &lt;/DT&gt; tag.
540 */
541 public void dtEnd() {
542 print("</DT>");
543 }
544
545 /**
546 * Print &lt;DD&gt; tag.
533 */ 547 */
534 public void dd() { 548 public void dd() {
535 print("<DD>"); 549 print("<DD>");
536 } 550 }
537 551

mercurial