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
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.
-
Field Summary
Fields inherited from class org.codelibs.fess.crawler.transformer.AbstractFessFileTransformer
dataSerializer, fessConfig, metaContentMappingFields inherited from class org.codelibs.fess.crawler.transformer.impl.AbstractTransformer
nameFields inherited from interface org.codelibs.fess.crawler.transformer.FessTransformer
parentEncodingMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codelibs.fess.crawler.extractor.ExtractorgetExtractor(org.codelibs.fess.crawler.entity.ResponseData responseData) Gets the appropriate extractor for the given response data.org.codelibs.fess.mylasta.direction.FessConfigGets the Fess configuration instance.org.apache.logging.log4j.LoggerGets the logger instance for this transformer.voidinit()Initializes the transformer after dependency injection.Methods inherited from class org.codelibs.fess.crawler.transformer.AbstractFessFileTransformer
addMetaContentMapping, createExtractParams, generateData, getData, getExtractData, getHostOnFile, getLastModified, getResourceName, getRoleTypes, getSiteOnFile, hasTitle, transformMethods inherited from class org.codelibs.fess.crawler.transformer.impl.AbstractTransformer
getName, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codelibs.fess.crawler.transformer.FessTransformer
abbreviateSite, decodeUrlAsName, evaluateValue, getFileName, getHost, getMaxSiteLength, getParentEncoding, getSite, processFieldConfigs, putResultDataBody, putResultDataWithTemplate
-
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:
getExtractorin classAbstractFessFileTransformer- 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
-