ExtractorFactory class builds the appropriate
Instance object according to the file extension. In the case
of not finding the registered extension, the default extractor will be used
if it has been previously configured.
new()Creates a ExtractorFactory object.
ExtractorFactory$new()
registerExtractor()Adds an extractor to the list of extensions. If the extension is an empty string (""), the indicated extractor will be the default when there is no extractor associated with an extension.
ExtractorFactory$registerExtractor(extensions, extractor)extensionsA character array. The names of the
extension option.
extractorA Object value. The extractor of the new
extension.
setExtractor()Modifies the extractor of the one extension.
ExtractorFactory$setExtractor(extension, extractor)extensionA character value. The name of the
extension option.
extractorA Object value. The value of the new
extractor.
setDefaultExtractor()Modifies the extractor of the one extension. Assign NULL value to disable the default extractor.
ExtractorFactory$setDefaultExtractor(defaultExtractor)defaultExtractorA Object value. The value of the default
extractor.
removeExtractor()Removes a specific extractor thought the extension.
ExtractorFactory$removeExtractor(extension)extensionA character value. The name of the
extension to remove.
getAllExtractors()Gets the list of extractors.
ExtractorFactory$getAllExtractors()Value of extractors.
getDefaultExtractor()Gets the default extractor.
ExtractorFactory$getDefaultExtractor()Value of default extractor.
isSpecificExtractor()Checks if exists an extractor for a specific extension.
ExtractorFactory$isSpecificExtractor(extension)extensionA character value. The name of the
extension to check
Value of extractors.
createInstance()Builds the Instance object according to the
file extension. In the case of not finding the registered extension, the
default extractor will be used if it has been previously configured.
ExtractorFactory$createInstance(path)pathA character value. Path of the file to create
an Instance.
The Instance corresponding object according to the
file extension.
reset()Resets list of extractor to default state.
ExtractorFactory$reset()
print()Prints pipeline representation. (Override print function)
ExtractorFactory$print(...)...Further arguments passed to or from other methods.
clone()The objects of this class are cloneable with this method.
ExtractorFactory$clone(deep = FALSE)deepWhether to make a deep clone.
ExtractorEml, ExtractorSms,
Instance