T
- public abstract class RDFIteratorImpl<T> extends Object implements RDFIterator<T>
This abstract implementation simply makes the hasNext()
and next()
methods of
standard Iterator
interface throw the specific runtime exception: ModelRuntimeException
Implementations of this abstract class should catch this Runtime Exception and then throw the standard
Checked Exception ModelAccessException
. This way, users will always use the specific methods of
RDFIterator (streamOpen()
and getNext()
) and be properly notified with the Catched
Exception ModelAccessException
. At the same time, should a library suited for the Iterator
interface be adopted, it will internally call the standard methods, possibly throw the Runtime exception,
and then have this catched and rethrown as a Checked Exception. This assures both compliance with existing
Iterator support libraries as well as Checked Extensions compile-time handling for his specific methods
Constructor and Description |
---|
RDFIteratorImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getNext, streamOpen
Copyright © 2015 ART Group, University of Rome, Tor Vergata. All Rights Reserved.