public class ExternalCollectionReader extends Object implements LeoCollectionReaderInterface
| Modifier and Type | Field and Description | 
|---|---|
protected org.apache.uima.collection.CollectionReader | 
reader
Reference to the external CollectionReader object that will do the real work of getting the data. 
 | 
| Constructor and Description | 
|---|
ExternalCollectionReader(org.apache.uima.collection.CollectionReader_ImplBase reader)
Initialize with a pre-created CollectionReader object. 
 | 
ExternalCollectionReader(File collectionReaderDescriptor)
Set the reader from the CollectionReader referenced in the File object specified. 
 | 
ExternalCollectionReader(String collectionReaderDescriptorPath)
Set the reader from the path to the descriptor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
org.apache.uima.collection.CollectionReader | 
produceCollectionReader()
Generate the UIMA Collection reader with resources. 
 | 
protected org.apache.uima.collection.CollectionReader reader
public ExternalCollectionReader(org.apache.uima.collection.CollectionReader_ImplBase reader)
reader - CollectionReader to set.public ExternalCollectionReader(String collectionReaderDescriptorPath) throws org.apache.uima.resource.ResourceInitializationException, IOException, org.apache.uima.util.InvalidXMLException
collectionReaderDescriptorPath - Path to the CollectionReader descriptor.org.apache.uima.resource.ResourceInitializationException - if there is an error reading the descriptor.IOException - if there is an error in the XML of the descriptor.org.apache.uima.util.InvalidXMLException - if the CollectionReader cannot be initialized by the framework.public ExternalCollectionReader(File collectionReaderDescriptor) throws IOException, org.apache.uima.util.InvalidXMLException, org.apache.uima.resource.ResourceInitializationException
collectionReaderDescriptor - CollectionReader descriptor to use.IOException - if there is an error reading the descriptor.org.apache.uima.util.InvalidXMLException - if there is an error in the XML of the descriptor.org.apache.uima.resource.ResourceInitializationException - if the CollectionReader cannot be initialized by the framework.public org.apache.uima.collection.CollectionReader produceCollectionReader()
                                                                    throws org.apache.uima.resource.ResourceInitializationException
produceCollectionReader in interface LeoCollectionReaderInterfaceorg.apache.uima.resource.ResourceInitializationException - if there is an error initializing the reader.Copyright © 2018 Department of Veterans Affairs. All Rights Reserved.