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, setName
public InputStream fetch(String fetchKey, Metadata metadata) throws IOException, TikaException
fetch
in interface Fetcher
IOException
TikaException
public Path getBasePath()
@Field public void setBasePath(String basePath)
basePath
- public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.