/** There no concept of caching in this OM-DOM implementation. */ public void internalSerializeWithCache(XMLStreamWriter writer) throws XMLStreamException { this.internalSerialize(writer); }
public void serialize(XMLStreamWriter xmlWriter) throws XMLStreamException { MTOMXMLStreamWriter writer = new MTOMXMLStreamWriter(xmlWriter); internalSerialize(writer); writer.flush(); }
public void serialize(OutputStream output, OMOutputFormat format) throws XMLStreamException { MTOMXMLStreamWriter writer = new MTOMXMLStreamWriter(output, format); try { internalSerialize(writer); writer.flush(); } finally { if (format.isAutoCloseWriter()) { writer.close(); } } }
public void serialize(Writer writer2, OMOutputFormat format) throws XMLStreamException { MTOMXMLStreamWriter writer = new MTOMXMLStreamWriter(StAXUtils .createXMLStreamWriter(writer2)); writer.setOutputFormat(format); try { internalSerialize(writer); writer.flush(); } finally { if (format.isAutoCloseWriter()) { writer.close(); } } }