anl.aida.reader
Class PubMedReader

java.lang.Object
  extended by org.apache.uima.resource.Resource_ImplBase
      extended by org.apache.uima.resource.ConfigurableResource_ImplBase
          extended by org.apache.uima.collection.CollectionReader_ImplBase
              extended by 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.


Field Summary
private  java.io.File[] files
           
private  int index
           
private static java.lang.String INPUT_DIR
           
private  PMXMLReader reader
           
 
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
 
Constructor Summary
PubMedReader()
           
 
Method Summary
 void close()
           
 void getNext(org.apache.uima.cas.CAS cas)
           
 org.apache.uima.util.Progress[] getProgress()
           
 boolean hasNext()
           
 void initialize()
           
 
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
 

Field Detail

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
Constructor Detail

PubMedReader

public PubMedReader()
Method Detail

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