public class FileSystemFetcher extends AbstractFetcher implements Initializable
| Constructor and Description | 
|---|
FileSystemFetcher()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
checkInitialization(InitializableProblemHandler problemHandler)  | 
InputStream | 
fetch(String fetchKey,
     Metadata metadata)  | 
Path | 
getBasePath()  | 
void | 
initialize(Map<String,Param> params)  | 
void | 
setBasePath(String basePath)
If clients will send in relative paths, this
 must be set to allow this fetcher to fetch the
 full path. 
 | 
getName, setNamepublic InputStream fetch(String fetchKey, Metadata metadata) throws IOException, TikaException
fetch in interface FetcherIOExceptionTikaExceptionpublic Path getBasePath()
@Field public void setBasePath(String basePath)
basePath - public void initialize(Map<String,Param> params) throws TikaConfigException
initialize in interface Initializableparams - params to use for initializationTikaConfigExceptionpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization in interface InitializableproblemHandler - if there is a problem and no
                       custom initializableProblemHandler has been configured
                       via Initializable parameters,
                       this is called to respond.TikaConfigExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.