com.aspose.html.rendering

Class MhtmlRenderer

  • All Implemented Interfaces:
    com.aspose.html.internal.ms.System.IDisposable


    public class MhtmlRenderer
    extends Renderer<com.aspose.html.internal.ms.System.IO.Stream>

    Represents a MHTML document renderer.

    • Constructor Summary

      Constructors 
      Constructor and Description
      MhtmlRenderer() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void render(IDevice device, com.aspose.html.internal.ms.System.IO.Stream[] documents, Configuration configuration)
      Renders multiple MHTML documents into specified IDevice.
      void render(IDevice device, com.aspose.html.internal.ms.System.IO.Stream[] documents, Configuration configuration, com.aspose.html.internal.ms.System.TimeSpan timeout)
      Renders multiple MHTML documents into specified IDevice.
      void render(IDevice device, com.aspose.html.internal.ms.System.IO.Stream document, Configuration configuration)
      Renders MHTML document into specified IDevice.
      void render(IDevice device, com.aspose.html.internal.ms.System.IO.Stream document, Configuration configuration, com.aspose.html.internal.ms.System.TimeSpan timeout)
      Renders MHTML document into specified IDevice.
      void render(IDevice device, com.aspose.html.internal.ms.System.TimeSpan timeout, com.aspose.html.internal.ms.System.IO.Stream document)
      Defines method for rendering MHTML Stream into specific IDevice.
      void render(IDevice device, com.aspose.html.internal.ms.System.TimeSpan timeout, com.aspose.html.internal.ms.System.IO.Stream[] documents)
      Renders multiple MHTML documents into specified IDevice.
      • Methods inherited from class com.aspose.html.rendering.RendererBase

        dispose, validatePageSetup
    • Constructor Detail

      • MhtmlRenderer

        public MhtmlRenderer()
    • Method Detail

      • render

        public void render(IDevice device,
                           com.aspose.html.internal.ms.System.TimeSpan timeout,
                           com.aspose.html.internal.ms.System.IO.Stream[] documents)

        Renders multiple MHTML documents 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.

        Specified by:
        render in class Renderer<com.aspose.html.internal.ms.System.IO.Stream>
        Parameters:
        device - The 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 void render(IDevice device,
                           com.aspose.html.internal.ms.System.TimeSpan timeout,
                           com.aspose.html.internal.ms.System.IO.Stream document)

        Defines method for rendering MHTML Stream 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.

        Specified by:
        render in class Renderer<com.aspose.html.internal.ms.System.IO.Stream>
        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.
      • render

        public void render(IDevice device,
                           com.aspose.html.internal.ms.System.IO.Stream document,
                           Configuration configuration)

        Renders MHTML document into specified IDevice.

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

        public void render(IDevice device,
                           com.aspose.html.internal.ms.System.IO.Stream document,
                           Configuration configuration,
                           com.aspose.html.internal.ms.System.TimeSpan timeout)

        Renders MHTML document 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 device.
        document - The document.
        configuration - The configuration.
        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,
                           com.aspose.html.internal.ms.System.IO.Stream[] documents,
                           Configuration configuration)

        Renders multiple MHTML documents into specified IDevice.

        Parameters:
        device - The device.
        documents - The IList{Stream} of documents to render.
        configuration - The configuration.
      • render

        public void render(IDevice device,
                           com.aspose.html.internal.ms.System.IO.Stream[] documents,
                           Configuration configuration,
                           com.aspose.html.internal.ms.System.TimeSpan timeout)

        Renders multiple MHTML documents 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 device.
        documents - The IList{Stream} of documents to render.
        configuration - The configuration.
        timeout - A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 millisecond to wait indefinitely.