Class EmptyFetcher

java.lang.Object
org.apache.tika.pipes.core.fetcher.EmptyFetcher
All Implemented Interfaces:
Fetcher, TikaExtension, org.pf4j.ExtensionPoint

public class EmptyFetcher extends Object implements Fetcher
  • Constructor Details

    • EmptyFetcher

      public EmptyFetcher()
  • Method Details

    • fetch

      public TikaInputStream fetch(String fetchKey, Metadata metadata, ParseContext parseContext) throws TikaException, IOException
      Description copied from interface: Fetcher
      Fetches a resource and returns it as a TikaInputStream.
      Specified by:
      fetch in interface Fetcher
      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 information
      parseContext - the parse context
      Returns:
      a TikaInputStream for reading the resource content
      Throws:
      TikaException - if a Tika-specific error occurs during fetching
      IOException - if an I/O error occurs during fetching
    • getExtensionConfig

      public ExtensionConfig getExtensionConfig()
      Specified by:
      getExtensionConfig in interface TikaExtension