Class EmptyFetcher
java.lang.Object
org.apache.tika.pipes.core.fetcher.EmptyFetcher
- All Implemented Interfaces:
Fetcher,TikaExtension,org.pf4j.ExtensionPoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetch(String fetchKey, Metadata metadata, ParseContext parseContext) Fetches a resource and returns it as a TikaInputStream.
-
Constructor Details
-
EmptyFetcher
public EmptyFetcher()
-
-
Method Details
-
fetch
public TikaInputStream fetch(String fetchKey, Metadata metadata, ParseContext parseContext) throws TikaException, IOException Description copied from interface:FetcherFetches a resource and returns it as a TikaInputStream.- Specified by:
fetchin interfaceFetcher- Parameters:
fetchKey- the key identifying the resource to fetch (interpretation depends on the implementation, e.g., file path, URL, S3 key)metadata- metadata object to be updated with resource informationparseContext- the parse context- Returns:
- a TikaInputStream for reading the resource content
- Throws:
TikaException- if a Tika-specific error occurs during fetchingIOException- if an I/O error occurs during fetching
-
getExtensionConfig
- Specified by:
getExtensionConfigin interfaceTikaExtension
-