Package org.apache.tika.renderer
Class CompositeRenderer
- java.lang.Object
-
- org.apache.tika.renderer.CompositeRenderer
-
- All Implemented Interfaces:
Serializable,Initializable,Renderer
public class CompositeRenderer extends Object implements Renderer, Initializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeRenderer(List<Renderer> renderers)CompositeRenderer(ServiceLoader serviceLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler problemHandler)RenderergetLeafRenderer(MediaType mt)Set<MediaType>getSupportedTypes(ParseContext context)Returns the set of media types supported by this renderer when used with the given parse context.voidinitialize(Map<String,Param> params)RenderResultsrender(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests)
-
-
-
Constructor Detail
-
CompositeRenderer
public CompositeRenderer(ServiceLoader serviceLoader)
-
-
Method Detail
-
getSupportedTypes
public Set<MediaType> getSupportedTypes(ParseContext context)
Description copied from interface:RendererReturns the set of media types supported by this renderer when used with the given parse context.- Specified by:
getSupportedTypesin 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:
renderin interfaceRenderer- Throws:
IOExceptionTikaException
-
initialize
public void initialize(Map<String,Param> params) throws TikaConfigException
- Specified by:
initializein interfaceInitializable- Parameters:
params- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
- Specified by:
checkInitializationin 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
-
-