Search in sources :

Example 1 with RawNodeIterator

use of org.exist.storage.dom.RawNodeIterator in project exist by eXist-db.

the class NativeBroker method getXMLStreamReader.

@Override
public IEmbeddedXMLStreamReader getXMLStreamReader(final NodeHandle node, final boolean reportAttributes) throws IOException, XMLStreamException {
    if (streamReader == null) {
        final RawNodeIterator iterator = new RawNodeIterator(this, domDb, node);
        streamReader = new EmbeddedXMLStreamReader(this, node.getOwnerDocument(), iterator, node, reportAttributes);
    } else {
        streamReader.reposition(this, node, reportAttributes);
    }
    return streamReader;
}
Also used : RawNodeIterator(org.exist.storage.dom.RawNodeIterator) IEmbeddedXMLStreamReader(org.exist.stax.IEmbeddedXMLStreamReader) EmbeddedXMLStreamReader(org.exist.stax.EmbeddedXMLStreamReader)

Aggregations

EmbeddedXMLStreamReader (org.exist.stax.EmbeddedXMLStreamReader)1 IEmbeddedXMLStreamReader (org.exist.stax.IEmbeddedXMLStreamReader)1 RawNodeIterator (org.exist.storage.dom.RawNodeIterator)1