Class ContentEnrichers

java.lang.Object
org.apache.tika.parser.enricher.ContentEnrichers

public final class ContentEnrichers extends Object
Resolves the content enricher for a media type.

Call sites: wrap the handler (an EmbeddedContentHandler over a BodyContentHandler) so the enricher cannot dump structure or metadata into the caller's XHTML; resolve on the detected type, captured before a parser can refine Content-Type mid-parse; pass the target's metadata, or a probe carrying its Content-Type and EMBEDDED_RESOURCE_TYPE when resolving ahead of a render; and pass the caller's own ParseContext through -- the recursion guard rides it, so a fresh context defeats it.

Since:
Apache Tika 4.1