Package org.apache.jena.rdf.model
Interface NsIterator
- All Superinterfaces:
ClosableIterator<String>
,Closeable
,ExtendedIterator<String>
,Iterator<String>
,IteratorCloseable<String>
- All Known Implementing Classes:
NsIteratorImpl
An iterator which returns namespace URI's.
RDF iterators are standard Java iterators, except that they
have an extra method that returns a specifically typed object,
in this case a String representing a namespace URI, and have
a close()
method that should be called to free
resources if the application does not complete the iteration.
-
Method Summary
Methods inherited from interface org.apache.jena.util.iterator.ClosableIterator
close
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
andThen, filterDrop, filterKeep, forEach, mapWith, nextOptional, removeNext, toList, toSet
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
nextNs
String nextNs()Return the next namespace name of the iteration.- Returns:
- The next name space URI from the iteration.
- Throws:
NoSuchElementException
- if there are no more to be returned.
-