Package org.apache.tika.pipes.fetcher.fs
Class FileSystemFetcher
java.lang.Object
org.apache.tika.pipes.fetcher.AbstractFetcher
org.apache.tika.pipes.fetcher.fs.FileSystemFetcher
- All Implemented Interfaces:
Initializable,Fetcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckInitialization(InitializableProblemHandler problemHandler) voidinitialize(Map<String, Param> params) voidsetBasePath(String basePath) Default behavior si that clients will send in relative paths, this must be set to allow this fetcher to fetch the full path.voidsetExtractFileSystemMetadata(boolean extractFileSystemMetadata) Extract file system metadata (created, modified, accessed) when fetching file.Methods inherited from class org.apache.tika.pipes.fetcher.AbstractFetcher
getName, setName
-
Constructor Details
-
FileSystemFetcher
public FileSystemFetcher()
-
-
Method Details
-
fetch
- Specified by:
fetchin interfaceFetcher- Throws:
IOExceptionTikaException
-
getBasePath
- Returns:
- the basePath or
nullif no base path was set
-
setBasePath
Default behavior si that clients will send in relative paths, this must be set to allow this fetcher to fetch the full path.- Parameters:
basePath-
-
setExtractFileSystemMetadata
Extract file system metadata (created, modified, accessed) when fetching file. The default isfalse.- Parameters:
extractFileSystemMetadata-
-
initialize
- Specified by:
initializein interfaceInitializable- Parameters:
params- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
checkInitializationin interfaceInitializable- Parameters:
problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-