com.aspose.html.rendering

Class Renderer<TDocument>

  • java.lang.Object
    • com.aspose.html.rendering.RendererBase
      • com.aspose.html.rendering.Renderer<TDocument>
  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable
    Direct Known Subclasses:
    EpubRenderer, HtmlRenderer, MhtmlRenderer, SvgRenderer


    public abstract class Renderer<TDocument>
    extends com.aspose.html.rendering.RendererBase

    Represents an abstract class for the all renderers.

    TDocument: The type of the document.

    See Also:
    IDisposable
    • Constructor Summary

      Constructors 
      Constructor and Description
      Renderer() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      void render(IDevice device, int timeout, TDocument[] documents)
      Defines method for rendering multiple TDocuments into specific IDevice.
      void render(IDevice device, TDocument document)
      Defines method for rendering TDocument into specified IDevice.
      void render(IDevice device, TDocument[] documents)
      Defines method for rendering multiple TDocuments into specific IDevice.
      void render(IDevice device, TDocument document, int timeout)
      Defines method for rendering TDocument into specified IDevice.
      void render(IDevice device, TDocument document, com.aspose.ms.System.TimeSpan timeout)
      Defines method for rendering TDocument into specified IDevice.
      abstract void render(IDevice device, com.aspose.ms.System.TimeSpan timeout, TDocument document)
      Defines method for rendering TDocument into specific IDevice.
      abstract void render(IDevice device, com.aspose.ms.System.TimeSpan timeout, TDocument[] documents)
      Defines method for rendering multiple TDocuments into specific IDevice.
      • Methods inherited from class com.aspose.html.rendering.RendererBase

        dispose, dispose, validatePageSetup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Renderer

        public Renderer()
    • Method Detail

      • render

        public void render(IDevice device,
                           TDocument document)

        Defines method for rendering TDocument into specified IDevice.

        Parameters:
        device - The output device.
        document - The document.
      • render

        public void render(IDevice device,
                           TDocument document,
                           com.aspose.ms.System.TimeSpan timeout)

        Defines method for rendering TDocument into specified IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Parameters:
        device - The output device.
        document - The document.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
      • render

        public void render(IDevice device,
                           TDocument document,
                           int timeout)

        Defines method for rendering TDocument into specified IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Parameters:
        device - The output device.
        document - The document.
        timeout - A number of milliseconds that represents the number of milliseconds to wait, or -1 millisecond to wait indefinitely.
      • render

        public void render(IDevice device,
                           TDocument[] documents)

        Defines method for rendering multiple TDocuments into specific IDevice.

        Parameters:
        device - The output device.
        documents - The documents to render.
      • render

        public void render(IDevice device,
                           int timeout,
                           TDocument[] documents)

        Defines method for rendering multiple TDocuments into specific IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Parameters:
        device - The output device.
        timeout - A number of milliseconds that represents the number of milliseconds to wait, or -1 millisecond to wait indefinitely.
        documents - The documents to render.
      • render

        public abstract void render(IDevice device,
                                    com.aspose.ms.System.TimeSpan timeout,
                                    TDocument[] documents)

        Defines method for rendering multiple TDocuments into specific IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Parameters:
        device - The output device.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
        documents - The documents to render.
      • render

        public abstract void render(IDevice device,
                                    com.aspose.ms.System.TimeSpan timeout,
                                    TDocument document)

        Defines method for rendering TDocument into specific IDevice. The rendering will be performed once there are no any network operations for loading resources, active timers, animation tasks or specified timeout is elapsed.

        Parameters:
        device - The output device.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.
        document - The documents to render.