public abstract class JCasCollectionReader_ImplBase
extends org.apache.uima.collection.CollectionReader_ImplBase
Constructor and Description |
---|
JCasCollectionReader_ImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getNext(org.apache.uima.cas.CAS cas) |
abstract void |
getNext(org.apache.uima.jcas.JCas jCas)
Subclasses should implement this method rather than
getNext(CAS) |
void |
initialize() |
void |
initialize(org.apache.uima.UimaContext context)
This method should be overwritten by subclasses.
|
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProgress, hasNext
public final void initialize() throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.collection.CollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
context
- the UIMA context the component is running inorg.apache.uima.resource.ResourceInitializationException
- if a failure occurs during initialization.public final void getNext(org.apache.uima.cas.CAS cas) throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
public abstract void getNext(org.apache.uima.jcas.JCas jCas) throws IOException, org.apache.uima.collection.CollectionException
getNext(CAS)
jCas
- the JCas
to store the read data toIOException
- if there was a low-level I/O problemorg.apache.uima.collection.CollectionException
- if there was another problempublic void close() throws IOException
IOException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.