Class RenderTarget
java.lang.Object
com.aquima.interactions.portal.documents.model.RenderTarget
- All Implemented Interfaces:
IRenderTarget
An implementation of the IRenderTarget interface. See com.aquima.interactions.documents.IRenderTarget for more
information.
- Since:
- 6.4
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor without any targets.RenderTarget
(OutputFormat format, OutputStream resultStream) Constructor that adds a single target. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTarget
(OutputFormat format, OutputStream resultStream) This method may be used to add a render target.void
closeAll()
This method closes all output streams known for this render target.This method returns an array of all registered output formats for this render target.getResult
(OutputFormat format) This method returns an output stream for a specific format.
-
Constructor Details
-
RenderTarget
public RenderTarget()Default constructor without any targets. -
RenderTarget
Constructor that adds a single target.- Parameters:
format
- The format of the target.resultStream
- The stream the result should be written to.
-
-
Method Details
-
addTarget
This method may be used to add a render target.- Parameters:
format
- The format of the target.resultStream
- The stream the result should be written to.
-
getResult
Description copied from interface:IRenderTarget
This method returns an output stream for a specific format.- Specified by:
getResult
in interfaceIRenderTarget
- Parameters:
format
- The output format.- Returns:
- The output stream, can be null if no stream specified for the given output format.
-
getOutputFormats
Description copied from interface:IRenderTarget
This method returns an array of all registered output formats for this render target.- Specified by:
getOutputFormats
in interfaceIRenderTarget
- Returns:
- Never null
-
closeAll
Description copied from interface:IRenderTarget
This method closes all output streams known for this render target.- Specified by:
closeAll
in interfaceIRenderTarget
- Throws:
IOException
- When there was a problem closing the stream.
-