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
org.apache.uima.fit.examples.experiment.pos.LineReader
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 LineReader extends org.apache.uima.fit.component.JCasCollectionReader_ImplBase
This collection reader is meant for example purposes only. For a much more robust and complete line reader implementation, please see org.cleartk.util.linereader.LineReader. This collection reader takes a single file and produces one JCas for each line in the file putting the text of the line into the default view.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getNext(org.apache.uima.jcas.JCas jCas)
     
    org.apache.uima.util.Progress[]
     
    boolean
     
    void
    initialize(org.apache.uima.UimaContext uimaContext)
     

    Methods inherited from class org.apache.uima.fit.component.JCasCollectionReader_ImplBase

    close, getNext, 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, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolder

    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 Details

  • Constructor Details

    • LineReader

      public LineReader()
  • Method Details

    • initialize

      public void initialize(org.apache.uima.UimaContext uimaContext) throws org.apache.uima.resource.ResourceInitializationException
      Overrides:
      initialize in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
      Throws:
      org.apache.uima.resource.ResourceInitializationException
    • hasNext

      public boolean hasNext() throws IOException, org.apache.uima.collection.CollectionException
      Throws:
      IOException
      org.apache.uima.collection.CollectionException
    • getNext

      public void getNext(org.apache.uima.jcas.JCas jCas) throws IOException, org.apache.uima.collection.CollectionException
      Specified by:
      getNext in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
      Throws:
      IOException
      org.apache.uima.collection.CollectionException
    • getProgress

      public org.apache.uima.util.Progress[] getProgress()