|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.analysis_engine.impl.JCasIteratorWrapper
public class JCasIteratorWrapper
Wraps a CasIterator as a JCasIterator
Constructor Summary | |
---|---|
JCasIteratorWrapper(CasIterator aCasIterator)
|
Method Summary | |
---|---|
boolean |
hasNext()
Checks if there are more JCASes to be returned by the iterator. |
JCas |
next()
Gets the next JCAS from the iterator. |
void |
release()
Releases any CASes owned by this JCasIterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCasIteratorWrapper(CasIterator aCasIterator)
Method Detail |
---|
public boolean hasNext() throws AnalysisEngineProcessException
JCasIterator
hasNext
in interface JCasIterator
AnalysisEngineProcessException
- if a failure has occurred during processing. If an exception is thrown, this
indicates that processing has aborted, so no further calls to the JCasIterator
should be made.public JCas next() throws AnalysisEngineProcessException
JCasIterator
next
in interface JCasIterator
AnalysisEngineProcessException
- if a failure has occurred during processing. If an exception is thrown, this
indicates that processing has aborted, so no further calls to the JCasIterator
should be made.public void release()
JCasIterator
release
in interface JCasIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |