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)
RenderergetSupportedTypes in interface Renderercontext - parse contextpublic RenderResults render(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests) throws IOException, TikaException
render in interface RendererIOExceptionTikaExceptionpublic void initialize(Map<String,Param> params) throws TikaConfigException
initialize in interface Initializableparams - params to use for initializationTikaConfigExceptionpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization in interface InitializableproblemHandler - if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.