Class AnnotationWriter
java.lang.Object
org.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.collection.CasConsumer_ImplBase
org.apache.uima.test.junit_extension.AnnotationWriter
- All Implemented Interfaces:
CasObjectProcessor,CasProcessor,CasConsumer,ConfigurableResource,Resource
Deprecated.
To be removed without replacement.
The AnnotationWriter class writes specified annotations to an output file. The encoding of the
output file is UTF-8
- To be removed in version:
- 4.0.0
-
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 TypeMethodDescriptionvoidbatchProcessComplete(ProcessTrace aTrace) Deprecated.Completes the processing of a batch.voidDeprecated.Completes the processing of an entire collection.voiddestroy()Deprecated.Releases all resources held by thisResource.voidDeprecated.Initializes this CAS Consumer with the parameters specified in the descriptor.voidprocessCas(CAS aCAS) Deprecated.Process a single CAS.voidDeprecated.Notifies this CAS Consumer that its configuration parameter settings have been changed.Methods inherited from class org.apache.uima.collection.CasConsumer_ImplBase
getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, 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.CasConsumer
isReadOnlyMethods inherited from interface org.apache.uima.collection.base_cpm.CasObjectProcessor
processCas, typeSystemInitMethods inherited from interface org.apache.uima.collection.base_cpm.CasProcessor
getProcessingResourceMetaData, isStatelessMethods 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, initialize, setLogger
-
Constructor Details
-
AnnotationWriter
public AnnotationWriter()Deprecated.
-
-
Method Details
-
initialize
Deprecated.Initializes this CAS Consumer with the parameters specified in the descriptor.- Overrides:
initializein classCasConsumer_ImplBase- Throws:
ResourceInitializationException- if there is error in initializing the resources
-
processCas
Deprecated.Description copied from interface:CasObjectProcessorProcess a single CAS.- Specified by:
processCasin interfaceCasObjectProcessor- Parameters:
aCAS- the CAS to be processed. Additional information may be added to this CAS (if this CAS processor is notread-only).- Throws:
ResourceProcessException- if processing fails
-
batchProcessComplete
Deprecated.Description copied from interface:CasProcessorCompletes the processing of a batch. A collection may be divided into one or more batches - it is up to the CollectionProcessingManager or the application to determine the number and size of batches.- Specified by:
batchProcessCompletein interfaceCasProcessor- Overrides:
batchProcessCompletein classCasConsumer_ImplBase- Parameters:
aTrace- an object that records information, such as timing, about this method's execution.- Throws:
ResourceProcessException- if an exception occurs during processingIOException- if an I/O failure occurs- See Also:
-
collectionProcessComplete
public void collectionProcessComplete(ProcessTrace aTrace) throws ResourceProcessException, IOException Deprecated.Description copied from interface:CasProcessorCompletes the processing of an entire collection.- Specified by:
collectionProcessCompletein interfaceCasProcessor- Overrides:
collectionProcessCompletein classCasConsumer_ImplBase- Parameters:
aTrace- an object that records information, such as timing, about this method's execution.- Throws:
ResourceProcessException- if an exception occurs during processingIOException- if an I/O failure occurs- See Also:
-
reconfigure
Deprecated.Description copied from class:CasConsumer_ImplBaseNotifies this CAS Consumer that its configuration parameter settings have been changed. By default this method just callsCasConsumer_ImplBase.destroy()followed byCasConsumer_ImplBase.initialize(). CAS Consumers that have expensive initialization that does not need to be redone whenever configuration parameters change may wish to override this method to provide a more efficient implementation.- Specified by:
reconfigurein interfaceConfigurableResource- Overrides:
reconfigurein classCasConsumer_ImplBase- Throws:
ResourceConfigurationException- if the configuration is not valid- See Also:
-
destroy
public void destroy()Deprecated.Description copied from interface:ResourceReleases all resources held by thisResource.- Specified by:
destroyin interfaceResource- Overrides:
destroyin classCasConsumer_ImplBase- See Also:
-