Interface RenderEngine
- All Known Implementing Classes:
BaseRenderEngine,ISYSRenderEngine
public interface RenderEngine
Interface which is used by the ServiceLoader to determine Render Engines.
-
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures the rendering engine with the specified properties.Gets the supported source formats.Gets the supported target formats.render(InputStreamDescriptor content, Options options) Loads the content that should be rendered with the specified options and creates the list containing the renditions.booleansupportsSourceFormat(SourceFormat format) Checks if the source format is supported.booleansupportsTargetFormat(TargetFormat format) Checks if the target format is supported.
-
Method Details
-
render
List<Rendition> render(InputStreamDescriptor content, Options options) throws TimeoutException, RenderingException Loads the content that should be rendered with the specified options and creates the list containing the renditions.- Parameters:
content- Content asInputStreamDescriptorwhich should be rendered incl. filenameoptions-Optionswhich are describing how to render the content- Returns:
- the collection of
instances which represent rendered content incl. informationsRendition - Throws:
TimeoutException- if a timeout was specified and it was reachedRenderingException- if engine is not available or internal initialization failures
-
supportsSourceFormat
Checks if the source format is supported.- Parameters:
format- the source format to be checked- Returns:
- true if the
SourceFormatwhich was recognized from the content filename is supported
-
supportsTargetFormat
Checks if the target format is supported.- Parameters:
format- the target format to be checked- Returns:
- true if the
TargetFormatwhich specifies how to render is supported
-
getSupportedSourceFormats
Set<SourceFormat> getSupportedSourceFormats()Gets the supported source formats.- Returns:
- returns all
SourceFormatsupported by the render engine
-
getSupportedTargetFormats
Set<TargetFormat> getSupportedTargetFormats()Gets the supported target formats.- Returns:
- returns all
TargetFormatsupported by the render engine
-
configure
Configures the rendering engine with the specified properties.- Parameters:
properties- Configuration for the Render Engine
-