return this;
}
private void copyBufferContentsToOutput() {
try {
HtmlCanvas outCanvas = new HtmlServletCanvas(request, response, output);
outCanvas.render(docType);
outCanvas.html(htmlAttributes);
// add any head elements
outCanvas.head(headAttributes);
if (headElements != null) {
for (Renderable each : headElements.getRenderables()) {
outCanvas.render(each);
}
}
outCanvas._head();
// copy out contents to output
outCanvas.out.write(out.toString());
outCanvas._html();
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}