public class FileSystemCollectionReader
extends org.apache.uima.collection.CollectionReader_ImplBase
InputDirectory - path to directory containing filesEncoding (optional) - character encoding of the input filesLanguage (optional) - language of the input documents| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_ENCODING
Name of configuration parameter that contains the character encoding used by the input files.
|
static String |
PARAM_INPUTDIR
Name of configuration parameter that must be set to the path of a directory containing input
files.
|
static String |
PARAM_LANGUAGE
Name of optional configuration parameter that contains the language of the documents in the
input directory.
|
static String |
PARAM_LENIENT
Name of the configuration parameter that must be set to indicate if the
execution proceeds if an encountered type is unknown
|
static String |
PARAM_XCAS
Optional configuration parameter that specifies XCAS input files
|
| Constructor and Description |
|---|
FileSystemCollectionReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static org.apache.uima.collection.CollectionReaderDescription |
getDescription()
Parses and returns the descriptor for this collection reader.
|
static URL |
getDescriptorURL() |
void |
getNext(org.apache.uima.cas.CAS aCAS) |
int |
getNumberOfDocuments()
Gets the total number of documents that will be returned by this collection reader.
|
org.apache.uima.util.Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize() |
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, loadUserClass, loadUserClassOrThrow, setContextHolder, setContextHolderX, setLogger, setMetaData, withContextHolderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String PARAM_INPUTDIR
public static final String PARAM_ENCODING
public static final String PARAM_LANGUAGE
public static final String PARAM_XCAS
public static final String PARAM_LENIENT
public void initialize()
throws org.apache.uima.resource.ResourceInitializationException
initialize in class org.apache.uima.collection.CollectionReader_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionCollectionReader_ImplBase.initialize()public boolean hasNext()
BaseCollectionReader.hasNext()public void getNext(org.apache.uima.cas.CAS aCAS)
throws IOException,
org.apache.uima.collection.CollectionException
IOExceptionorg.apache.uima.collection.CollectionExceptionCollectionReader.getNext(org.apache.uima.cas.CAS)public void close()
throws IOException
IOExceptionBaseCollectionReader.close()public org.apache.uima.util.Progress[] getProgress()
BaseCollectionReader.getProgress()public int getNumberOfDocuments()
public static org.apache.uima.collection.CollectionReaderDescription getDescription()
throws org.apache.uima.util.InvalidXMLException
org.apache.uima.util.InvalidXMLException - if the descriptor is invalid or missingpublic static URL getDescriptorURL()
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.