public class CompositeRenderer extends Object implements Renderer, Initializable
Constructor and Description |
---|
CompositeRenderer(List<Renderer> renderers) |
CompositeRenderer(ServiceLoader serviceLoader) |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
Renderer |
getLeafRenderer(MediaType mt) |
Set<MediaType> |
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) |
RenderResults |
render(InputStream is,
Metadata metadata,
ParseContext parseContext,
RenderRequest... requests) |
public CompositeRenderer(ServiceLoader serviceLoader)
public Set<MediaType> getSupportedTypes(ParseContext context)
Renderer
getSupportedTypes
in interface Renderer
context
- parse contextpublic RenderResults render(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests) throws IOException, TikaException
render
in interface Renderer
IOException
TikaException
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.