java.lang.Object
com.aquima.interactions.portal.documents.model.RenderTarget
All Implemented Interfaces:
IRenderTarget

public class RenderTarget extends Object implements 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 Details

    • RenderTarget

      public RenderTarget()
      Default constructor without any targets.
    • RenderTarget

      public RenderTarget(OutputFormat format, OutputStream resultStream)
      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

      public void addTarget(OutputFormat format, OutputStream resultStream)
      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

      public OutputStream getResult(OutputFormat format)
      Description copied from interface: IRenderTarget
      This method returns an output stream for a specific format.
      Specified by:
      getResult in interface IRenderTarget
      Parameters:
      format - The output format.
      Returns:
      The output stream, can be null if no stream specified for the given output format.
    • getOutputFormats

      public OutputFormat[] getOutputFormats()
      Description copied from interface: IRenderTarget
      This method returns an array of all registered output formats for this render target.
      Specified by:
      getOutputFormats in interface IRenderTarget
      Returns:
      Never null
    • closeAll

      public void closeAll() throws IOException
      Description copied from interface: IRenderTarget
      This method closes all output streams known for this render target.
      Specified by:
      closeAll in interface IRenderTarget
      Throws:
      IOException - When there was a problem closing the stream.