Package org.apache.tika.renderer
Interface Renderer
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
PDDocumentRenderer
- All Known Implementing Classes:
CompositeRenderer,MuPDFRenderer,PDFBoxRenderer
Interface for a renderer. This should be flexible enough to run on the initial design: PDF pages
but also on portions of PDF pages as well as on other document types.
-
Method Summary
Modifier and TypeMethodDescriptiongetSupportedTypes(ParseContext context) Returns the set of media types supported by this renderer when used with the given parse context.render(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests)
-
Method Details
-
getSupportedTypes
Returns the set of media types supported by this renderer when used with the given parse context.- Parameters:
context- parse context- Returns:
- immutable set of media types
- Since:
- Apache Tika 2.5.0
-
render
RenderResults render(InputStream is, Metadata metadata, ParseContext parseContext, RenderRequest... requests) throws IOException, TikaException - Throws:
IOExceptionTikaException
-