/** * 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()); }
writeStartElement(in, out, in.getName(), false); writeCurrentAttributes(in, out); break; writeCurrentAttributes(in, out); break; case XMLStreamConstants.CHARACTERS: // 4 case XMLStreamConstants.SPACE: // 6 writeValue(in, out); break;
public void copyNode(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException { Assertion.notNull(in); Assertion.notNull(out); // handle the current event handleEvent(in, out, in.getEventType()); while (in.hasNext()) { int event = in.next(); handleEvent(in, out, event); if (nodeStack.isEmpty()) { break; } } }
writeStartElement(in, out, in.getName(), false); writeCurrentAttributes(in, out); break; writeCurrentAttributes(in, out); break; case XMLStreamConstants.CHARACTERS: // 4 case XMLStreamConstants.SPACE: // 6 writeValue(in, out); break;
public void copyNode(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException { Assertion.notNull(in); Assertion.notNull(out); // handle the current event log.trace("initial handling method."); handleEvent(in, out, in.getEventType()); log.trace("About to enter event loop."); while (in.hasNext()) { log.trace("In event loop, about to get the next event."); int event = in.next(); log.trace("Handling the next event."); handleEvent(in, out, event); if (nodeStack.isEmpty()) { break; } } }
/** * 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 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>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); }
/** * 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>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(); }