Package org.apache.tika.renderer
Class CompositeRenderer
java.lang.Object
org.apache.tika.renderer.CompositeRenderer
- All Implemented Interfaces:
Serializable
,Initializable
,Renderer
- See Also:
-
Constructor Summary
ConstructorDescriptionCompositeRenderer
(List<Renderer> renderers) CompositeRenderer
(ServiceLoader serviceLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkInitialization
(InitializableProblemHandler problemHandler) getSupportedTypes
(ParseContext context) Returns the set of media types supported by this renderer when used with the given parse context.void
initialize
(Map<String, Param> params) render
(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests)
-
Constructor Details
-
CompositeRenderer
-
CompositeRenderer
-
-
Method Details
-
getSupportedTypes
Description copied from interface:Renderer
Returns the set of media types supported by this renderer when used with the given parse context.- Specified by:
getSupportedTypes
in interfaceRenderer
- Parameters:
context
- parse context- Returns:
- immutable set of media types
-
render
public RenderResults render(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests) throws IOException, TikaException - Specified by:
render
in interfaceRenderer
- Throws:
IOException
TikaException
-
getLeafRenderer
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Parameters:
params
- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
checkInitialization
in interfaceInitializable
- Parameters:
problemHandler
- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-