anl.aida.reader
Class PubMedReader
java.lang.Object
org.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.collection.CollectionReader_ImplBase
anl.aida.reader.PubMedReader
- All Implemented Interfaces:
- org.apache.uima.collection.base_cpm.BaseCollectionReader, org.apache.uima.collection.CollectionReader, org.apache.uima.resource.ConfigurableResource, org.apache.uima.resource.Resource
public class PubMedReader
- extends org.apache.uima.collection.CollectionReader_ImplBase
CollectionReaders for the pub med abstracts in xml format.
Fields inherited from interface org.apache.uima.resource.Resource |
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT |
Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase |
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit |
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase |
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
Methods inherited from class org.apache.uima.resource.Resource_ImplBase |
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.uima.resource.ConfigurableResource |
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue |
Methods inherited from interface org.apache.uima.resource.Resource |
getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger |
INPUT_DIR
private static final java.lang.String INPUT_DIR
- See Also:
- Constant Field Values
files
private java.io.File[] files
index
private int index
reader
private PMXMLReader reader
PubMedReader
public PubMedReader()
initialize
public void initialize()
throws org.apache.uima.resource.ResourceInitializationException
- Overrides:
initialize
in class org.apache.uima.collection.CollectionReader_ImplBase
- Throws:
org.apache.uima.resource.ResourceInitializationException
getNext
public void getNext(org.apache.uima.cas.CAS cas)
throws java.io.IOException,
org.apache.uima.collection.CollectionException
- Throws:
java.io.IOException
org.apache.uima.collection.CollectionException
hasNext
public boolean hasNext()
throws java.io.IOException,
org.apache.uima.collection.CollectionException
- Throws:
java.io.IOException
org.apache.uima.collection.CollectionException
getProgress
public org.apache.uima.util.Progress[] getProgress()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException