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
 
 public class FileSystemFetcher extends AbstractFetcher implements Initializable 
- 
- 
Constructor SummaryConstructors Constructor Description FileSystemFetcher()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler problemHandler)InputStreamfetch(String fetchKey, Metadata metadata)PathgetBasePath()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.AbstractFetchergetName, setName
 
- 
 
- 
- 
- 
Method Detail- 
fetchpublic InputStream fetch(String fetchKey, Metadata metadata) throws IOException, TikaException - Specified by:
- fetchin interface- Fetcher
- Throws:
- IOException
- TikaException
 
 - 
getBasePathpublic Path getBasePath() - Returns:
- the basePath or nullif no base path was set
 
 - 
setBasePath@Field public void setBasePath(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.- Parameters:
- basePath-
 
 - 
setExtractFileSystemMetadata@Field public void setExtractFileSystemMetadata(boolean extractFileSystemMetadata) Extract file system metadata (created, modified, accessed) when fetching file. The default isfalse.- Parameters:
- extractFileSystemMetadata-
 
 - 
initializepublic void initialize(Map<String,Param> params) throws TikaConfigException - Specified by:
- initializein interface- Initializable
- Parameters:
- params- params to use for initialization
- Throws:
- TikaConfigException
 
 - 
checkInitializationpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
- checkInitializationin interface- Initializable
- Parameters:
- problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.
- Throws:
- TikaConfigException
 
 
- 
 
-