Package org.apache.uima.fit.component
Class JCasCollectionReader_ImplBase
java.lang.Object
org.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.collection.CollectionReader_ImplBase
org.apache.uima.fit.component.JCasCollectionReader_ImplBase
- All Implemented Interfaces:
 BaseCollectionReader,CollectionReader,ConfigurableResource,Resource
- Direct Known Subclasses:
 LineReader
Base class for JCas collection readers which initializes itself based on annotations.
- 
Field Summary
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes thisCollectionReader, after which it may no longer be used.final voidGets the next element of the collection.abstract voidSubclasses should implement this method rather thangetNext(CAS)final voidThis method is called during initialization, and does nothing by default.voidinitialize(UimaContext context) This method should be overwritten by subclasses.Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInitMethods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValueMethods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.uima.collection.base_cpm.BaseCollectionReader
getProgress, hasNextMethods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValueMethods inherited from interface org.apache.uima.resource.Resource
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger 
- 
Constructor Details
- 
JCasCollectionReader_ImplBase
public JCasCollectionReader_ImplBase() 
 - 
 - 
Method Details
- 
initialize
Description copied from class:CollectionReader_ImplBaseThis method is called during initialization, and does nothing by default. Subclasses should override it to perform one-time startup logic.- Overrides:
 initializein classCollectionReader_ImplBase- Throws:
 ResourceInitializationException- if a failure occurs during initialization.
 - 
initialize
This method should be overwritten by subclasses.- Parameters:
 context- the UIMA context the component is running in- Throws:
 ResourceInitializationException- if a failure occurs during initialization.
 - 
getNext
Description copied from interface:CollectionReaderGets the next element of the collection. The element will be stored in the provided CAS object. If this is a consumingCollectionReader(seeBaseCollectionReader.isConsuming()), this element will also be removed from the collection.- Parameters:
 cas- the CAS to populate with the next element of the collection- Throws:
 IOException- if an I/O failure occursCollectionException- if there is some other problem with reading from the Collection
 - 
getNext
Subclasses should implement this method rather thangetNext(CAS)- Parameters:
 jCas- theJCasto store the read data to- Throws:
 IOException- if there was a low-level I/O problemCollectionException- if there was another problem
 - 
close
Description copied from interface:BaseCollectionReaderCloses thisCollectionReader, after which it may no longer be used.- Throws:
 IOException- if an I/O failure occurs
 
 -