Package org.apache.tika.pipes.fetcher.fs
Class FileSystemFetcherFactory
java.lang.Object
org.apache.tika.pipes.fetcher.fs.FileSystemFetcherFactory
- All Implemented Interfaces:
FetcherFactory,TikaExtensionFactory<Fetcher>,org.pf4j.ExtensionPoint
Factory for creating file system fetchers.
Example JSON configuration:
"fetchers": {
"file-system-fetcher": {
"my-fetcher": {
"basePath": "/path/to/files",
"extractFileSystemMetadata": true
}
}
}
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileSystemFetcherFactory
public FileSystemFetcherFactory()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTikaExtensionFactory<Fetcher>- Returns:
- name of the extension in the config file
-
buildExtension
public Fetcher buildExtension(ExtensionConfig extensionConfig) throws IOException, TikaConfigException - Specified by:
buildExtensionin interfaceTikaExtensionFactory<Fetcher>- Throws:
IOExceptionTikaConfigException
-