public class XMLChunkIterator extends Object implements Iterator<XMLChunk>
Matcher
implementations. The default way is to specify element QNames.
Please note that the iterator updates the content of the Parent-Chunks if a
nested chunk is visited. Simple use the XMLChunk.getParent()
method
to get an updated parent.Modifier and Type | Class and Description |
---|---|
static class |
XMLChunkIterator.QNameMatcher
Matches an element path, if the last element in the path matches a given
qname.
|
Constructor and Description |
---|
XMLChunkIterator(InputSource source,
Iterable<org.n52.security.common.xml.XMLChunkIterator.Matcher> elementMatcher) |
XMLChunkIterator(InputSource source,
QName... chunkStartElements) |
XMLChunkIterator(InputSource source,
org.n52.security.common.xml.XMLChunkIterator.Matcher... elementMatcher) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
XMLChunk |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public XMLChunkIterator(InputSource source, Iterable<org.n52.security.common.xml.XMLChunkIterator.Matcher> elementMatcher)
public XMLChunkIterator(InputSource source, org.n52.security.common.xml.XMLChunkIterator.Matcher... elementMatcher)
public XMLChunkIterator(InputSource source, QName... chunkStartElements)
Copyright © 2004–2018 52north.org. All rights reserved.