1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java Fri Oct 12 14:53:50 2012 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlDocument.java Mon Oct 15 17:07:55 2012 -0700 1.3 @@ -25,7 +25,10 @@ 1.4 1.5 package com.sun.tools.doclets.formats.html.markup; 1.6 1.7 +import java.io.IOException; 1.8 +import java.io.Writer; 1.9 import java.util.*; 1.10 + 1.11 import com.sun.tools.doclets.internal.toolkit.Content; 1.12 import com.sun.tools.doclets.internal.toolkit.util.*; 1.13 1.14 @@ -74,7 +77,7 @@ 1.15 * 1.16 * @param htmlContent html content to be added 1.17 */ 1.18 - public void addContent(Content htmlContent) { 1.19 + public final void addContent(Content htmlContent) { 1.20 if (htmlContent.isValid()) 1.21 docContent.add(htmlContent); 1.22 } 1.23 @@ -101,8 +104,9 @@ 1.24 /** 1.25 * {@inheritDoc} 1.26 */ 1.27 - public void write(StringBuilder contentBuilder) { 1.28 + public boolean write(Writer out, boolean atNewline) throws IOException { 1.29 for (Content c : docContent) 1.30 - c.write(contentBuilder); 1.31 + atNewline = c.write(out, atNewline); 1.32 + return atNewline; 1.33 } 1.34 }