/** * @param writer * the writer to which output is written * @param formatting * indicate if the writer should format output */ public DitaTopicDocumentBuilder(XmlStreamWriter writer, boolean formatting) { super(formatting ? wrapStreamWriter(writer) : writer); }
@Override protected XmlStreamWriter createXmlStreamWriter(Writer out) { XmlStreamWriter writer = super.createXmlStreamWriter(out); return wrapStreamWriter(writer); }