Class FessFileTransformer

java.lang.Object
org.codelibs.fess.crawler.transformer.impl.AbstractTransformer
org.codelibs.fess.crawler.transformer.AbstractFessFileTransformer
org.codelibs.fess.crawler.transformer.FessFileTransformer
All Implemented Interfaces:
FessTransformer, org.codelibs.fess.crawler.transformer.Transformer

public class FessFileTransformer extends AbstractFessFileTransformer
File transformer implementation for the Fess search engine. This transformer handles file-based document transformation and content extraction using the Fess file transformation process with support for various file types.

It extends AbstractFessFileTransformer to provide specialized file processing capabilities using the appropriate extractor for each file type.

  • Constructor Details

    • FessFileTransformer

      public FessFileTransformer()
      Default constructor.
  • Method Details

    • init

      @PostConstruct public void init()
      Initializes the transformer after dependency injection. Sets up the Fess configuration and data serializer components.
    • getFessConfig

      public org.codelibs.fess.mylasta.direction.FessConfig getFessConfig()
      Gets the Fess configuration instance.
      Returns:
      the Fess configuration
    • getLogger

      public org.apache.logging.log4j.Logger getLogger()
      Gets the logger instance for this transformer.
      Returns:
      the logger instance
    • getExtractor

      protected org.codelibs.fess.crawler.extractor.Extractor getExtractor(org.codelibs.fess.crawler.entity.ResponseData responseData)
      Gets the appropriate extractor for the given response data. Selects an extractor based on the MIME type of the file.
      Specified by:
      getExtractor in class AbstractFessFileTransformer
      Parameters:
      responseData - the response data containing the file to extract
      Returns:
      the extractor instance for processing the file
      Throws:
      FessSystemException - if no suitable extractor factory can be found