Class FileReader
- java.lang.Object
-
- org.apache.uima.resource.Resource_ImplBase
-
- org.apache.uima.resource.ConfigurableResource_ImplBase
-
- org.apache.uima.collection.CollectionReader_ImplBase
-
- de.julielab.jcore.reader.file.main.FileReader
-
- 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 FileReader extends org.apache.uima.collection.CollectionReader_ImplBase
-
-
Field Summary
Fields Modifier and Type Field Description static StringALLOWED_FILE_EXTENSIONSstatic StringDIRECTORY_INPUTstatic StringDIRECTORY_ORIG_FILESstatic StringDIRECTORY_SUBDIRSstatic StringFILE_NAME_SPLIT_UNDERSCOREstatic StringFILENAME_AS_DOC_IDstatic StringORIG_FILES_EXTstatic StringPUBLICATION_DATES_FILEstatic StringSENTENCE_PER_LINEstatic StringTOKEN_BY_TOKEN
-
Constructor Summary
Constructors Constructor Description FileReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidgetNext(org.apache.uima.cas.CAS aCAS)org.apache.uima.util.Progress[]getProgress()booleanhasNext()voidinitialize()-
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, setLogger, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
DIRECTORY_INPUT
public static final String DIRECTORY_INPUT
- See Also:
- Constant Field Values
-
FILENAME_AS_DOC_ID
public static final String FILENAME_AS_DOC_ID
- See Also:
- Constant Field Values
-
PUBLICATION_DATES_FILE
public static final String PUBLICATION_DATES_FILE
- See Also:
- Constant Field Values
-
ALLOWED_FILE_EXTENSIONS
public static final String ALLOWED_FILE_EXTENSIONS
- See Also:
- Constant Field Values
-
SENTENCE_PER_LINE
public static final String SENTENCE_PER_LINE
- See Also:
- Constant Field Values
-
TOKEN_BY_TOKEN
public static final String TOKEN_BY_TOKEN
- See Also:
- Constant Field Values
-
FILE_NAME_SPLIT_UNDERSCORE
public static final String FILE_NAME_SPLIT_UNDERSCORE
- See Also:
- Constant Field Values
-
DIRECTORY_SUBDIRS
public static final String DIRECTORY_SUBDIRS
- See Also:
- Constant Field Values
-
DIRECTORY_ORIG_FILES
public static final String DIRECTORY_ORIG_FILES
- See Also:
- Constant Field Values
-
ORIG_FILES_EXT
public static final String ORIG_FILES_EXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize() throws org.apache.uima.resource.ResourceInitializationException- Overrides:
initializein classorg.apache.uima.collection.CollectionReader_ImplBase- Throws:
org.apache.uima.resource.ResourceInitializationException- See Also:
CollectionReader_ImplBase.initialize()
-
hasNext
public boolean hasNext()
- See Also:
BaseCollectionReader.hasNext()
-
getNext
public void getNext(org.apache.uima.cas.CAS aCAS) throws IOException, org.apache.uima.collection.CollectionException- Throws:
IOExceptionorg.apache.uima.collection.CollectionException- See Also:
CollectionReader.getNext(org.apache.uima.cas.CAS)
-
close
public void close() throws IOException- Throws:
IOException- See Also:
BaseCollectionReader.close()
-
getProgress
public org.apache.uima.util.Progress[] getProgress()
- See Also:
BaseCollectionReader.getProgress()
-
-