/** * Copies the current node and its children to the <code>sink</code>. * * @param sink the output sink */ public void copyNode(OutputStream sink) throws XMLStreamException { Assertion.notNull(sink); outputFactory.setProperty("javax.xml.stream.isRepairingNamespaces", isNsRepairing); final XMLStreamWriter writer = outputFactory.createXMLStreamWriter(sink); final DcsStreamSupport dcsStream = new DcsStreamSupport(); dcsStream.copyNode(in, writer); writer.flush(); writer.close(); }
/** * Copies the current node and its children to the <code>sink</code>. * * @param sink the output sink */ @Override public void copyNode(OutputStream sink) throws XMLStreamException { Assertion.notNull(sink); outputFactory.setProperty("javax.xml.stream.isRepairingNamespaces", isNsRepairing); final XMLStreamWriter writer = outputFactory.createXMLStreamWriter(sink); final DcsStreamSupport dcsStream = new DcsStreamSupport(); dcsStream.copyNode(in, writer); writer.flush(); writer.close(); }
/** * Copies the current node and its children to the <code>sink</code>. * * @param sink the output sink */ @Override public void copyNode(OutputStream sink) throws XMLStreamException { Assertion.notNull(sink); outputFactory.setProperty("javax.xml.stream.isRepairingNamespaces", isNsRepairing); final XMLStreamWriter writer = outputFactory.createXMLStreamWriter(sink); final DcsStreamSupport dcsStream = new DcsStreamSupport(); dcsStream.copyNode(in, writer); writer.flush(); writer.close(); }
/** * Copies the current node and its children to the <code>writer</code>. * * @param writer the writer to write to */ public void copyNode(DcsStaxWriter writer) throws XMLStreamException { Assertion.notNull(writer); final DcsStreamSupport dcsStream = new DcsStreamSupport(); dcsStream.copyNode(in, writer.getXMLStreamWriter()); }
/** * Copies the current node and its children to the <code>writer</code>. * * @param writer the writer to write to */ public void copyNode(DcsStaxWriter writer) throws XMLStreamException { Assertion.notNull(writer); final DcsStreamSupport dcsStream = new DcsStreamSupport(); dcsStream.copyNode(in, writer.getXMLStreamWriter()); }
/** * Copies the current node and its children to the <code>sink</code>. * * @param in * @param out the output sink * @throws javax.xml.stream.XMLStreamException */ public void copyNode(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException { Assertion.notNull(in); Assertion.notNull(out); final DcsStreamSupport dss = new DcsStreamSupport(); dss.copyNode(in, out); }
/** * Copies the current node and its children to the <code>sink</code>. * * @param in * @param out the output sink * @throws javax.xml.stream.XMLStreamException */ public void copyNode(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException { Assertion.notNull(in); Assertion.notNull(out); final DcsStreamSupport dss = new DcsStreamSupport(); dss.copyNode(in, out); }
/** * Copies the current node and its children to the <code>writer</code>. * * @param writer the writer to write to */ public void copyNode(FDOStaxWriter writer) throws XMLStreamException { Assertion.notNull(writer); final DcsStreamSupport dcsStream = new DcsStreamSupport(); dcsStream.copyNode(in, writer.getXMLStreamWriter()); }
/** * Copies the current node and its children to the <code>sink</code>. * * @param in * @param out the output sink * @throws javax.xml.stream.XMLStreamException */ public void copyNode(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException { Assertion.notNull(in); Assertion.notNull(out); final DcsStreamSupport dss = new DcsStreamSupport(); dss.copyNode(in, out); }