public class JCasIteratorWrapper extends Object implements JCasIterator
| Constructor and Description |
|---|
JCasIteratorWrapper(CasIterator aCasIterator) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JCasIteratorWrapper(CasIterator aCasIterator)
public boolean hasNext()
throws AnalysisEngineProcessException
JCasIteratorhasNext in interface JCasIteratorAnalysisEngineProcessException - 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
JCasIteratornext in interface JCasIteratorAnalysisEngineProcessException - 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()
JCasIteratorrelease in interface JCasIteratorCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.