public class BinaryCasReader extends ResourceCollectionReaderBase
ResourceCollectionReaderBase.Resource
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_TYPE_SYSTEM_LOCATION
The location from which to obtain the type system when the CAS is stored in form 0.
|
EXCLUDE_PREFIX, INCLUDE_PREFIX, JAR_PREFIX, KEY_RESOURCE_RESOLVER, PARAM_INCLUDE_HIDDEN, PARAM_LANGUAGE, PARAM_PATH, PARAM_PATTERNS, PARAM_SOURCE_LOCATION, PARAM_USE_DEFAULT_EXCLUDES
Constructor and Description |
---|
BinaryCasReader() |
Modifier and Type | Method and Description |
---|---|
void |
getNext(org.apache.uima.cas.CAS aCAS) |
protected org.springframework.core.io.Resource |
getTypeSystemResource() |
protected Collection<ResourceCollectionReaderBase.Resource> |
scan(String aBase,
Collection<String> aIncludes,
Collection<String> aExcludes)
It is possible that the type system overlaps with the scan pattern for files, e.g.
|
getBase, getBase, getDefaultExcludes, getLanguage, getProgress, getResolver, getResourceIterator, getResources, getSourceLocation, hasNext, initCas, initCas, initialize, isSingleLocation, locationToUrl, nextFile
close, getLogger, initialize
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String PARAM_TYPE_SYSTEM_LOCATION
public void getNext(org.apache.uima.cas.CAS aCAS) throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
protected Collection<ResourceCollectionReaderBase.Resource> scan(String aBase, Collection<String> aIncludes, Collection<String> aExcludes) throws IOException
.ser
and the resources also end in .ser
. If this is
the case, we filter the type system file from the resource files during scanning.scan
in class ResourceCollectionReaderBase
IOException
protected org.springframework.core.io.Resource getTypeSystemResource() throws MalformedURLException
MalformedURLException
Copyright © 2011–2015. All rights reserved.