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
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
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.