com.groupdocs.viewer.interfaces

Interface ResourceStreamFactory



  • public interface ResourceStreamFactory

    Defines the methods that are required for creating resource URL, instantiating and releasing output HTML resource stream.

    • Method Detail

      • createResourceStream

        OutputStream createResourceStream(int pageNumber,
                                          Resource resource)

        Creates the stream used to write output HTML resource data.

        Parameters:
        pageNumber - The number of a page.
        resource - The HTML resource such as font, style, image or graphics.
        Returns:
        OutputStream used to write output resource data.
      • createResourceUrl

        String createResourceUrl(int pageNumber,
                                 Resource resource)

        Creates the URL for HTML resource.

        Parameters:
        pageNumber - The number of a page.
        resource - The HTML resource such as font, style, image or graphics.
        Returns:
        URL for HTML resource.