}
super.toOutputStream(os, rebuild, charset);
</BUG>
}
@Override
<BUG>public void toOutputStream(final OutputStream os, final boolean rebuild,

final String charset) throws IOException {
final Charset cs = Charset.forName(charset);
if (prependDocType) {
os.write((docTypeTag + "\n").getBytes(cs));
}
super.toOutputStream(os, rebuild, cs);
</BUG>
}

}
final String htmlString = super.toHtmlString(super.getCharset());
return htmlString;
} finally {
super.setCharset(previousCharset);
}
}
