use of com.thoughtworks.xstream.io.xml.StaxWriter in project camel by apache.
the class XStreamDataFormat method createHierarchicalStreamWriter.
protected HierarchicalStreamWriter createHierarchicalStreamWriter(Exchange exchange, Object body, OutputStream stream) throws XMLStreamException {
updateCharactorEncodingInfo(exchange);
if (getXstreamDriver() != null) {
return getXstreamDriver().createWriter(stream);
}
XMLStreamWriter xmlWriter = getStaxConverter().createXMLStreamWriter(stream, exchange);
return new StaxWriter(new QNameMap(), xmlWriter);
}
Aggregations