log.warn("Unexpected exception while closing a writer: " + e.getMessage());
}
}
public void render(Writer out) throws ConverterException {
stream = new StreamingMarkupWriter(out, encoding);
writer = config.isPrettyPrint() ? new PrettyPrintXMLStreamWriter(stream): new XMLStreamWriter(stream);
try {
isRendering = true;
writer.startDocument(encoding, "1.0");