Class HTMLReportRenderer

  • All Implemented Interfaces:
    ReportRenderer

    public class HTMLReportRenderer
    extends java.lang.Object
    implements ReportRenderer
    HTMLReportRenderer will transform its input XML into HTML using the supplied XSLT resource.
    Author:
    Jonathan Sartin
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLReportRenderer()
      Constructor for HTMLReportRenderer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBaseDir()
      getBaseDir
      java.lang.String getOutputFileName()
      getOutputFileName
      void render()
      render
      void render​(java.io.InputStream inputStream, java.io.OutputStream outputStream, org.springframework.core.io.Resource xsltResource)
      render
      void render​(java.io.Reader in, java.io.OutputStream out, java.io.Reader xslt)
      render
      void render​(java.lang.String inputFileName, java.io.OutputStream outputStream, org.springframework.core.io.Resource xsltResource)
      render
      void render​(java.lang.String inputFileName, java.lang.String outputFileName, org.springframework.core.io.Resource xsltResource)
      render
      byte[] render​(java.lang.String inputFileName, org.springframework.core.io.Resource xsltResource)
      render
      void setBaseDir​(java.lang.String baseDir)
      setBaseDir
      void setInputFileName​(java.lang.String inputFileName)
      setInputFileName
      void setOutputFileName​(java.lang.String outputFileName)
      setOutputFileName
      void setXsltResource​(org.springframework.core.io.Resource xsltResource)
      setXsltResource
      • Methods inherited from class java.lang.Object

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

      • HTMLReportRenderer

        public HTMLReportRenderer()

        Constructor for HTMLReportRenderer.

    • Method Detail

      • render

        public byte[] render​(java.lang.String inputFileName,
                             org.springframework.core.io.Resource xsltResource)
                      throws ReportRenderException

        render

        Specified by:
        render in interface ReportRenderer
        Parameters:
        inputFileName - a String object.
        xsltResource - a Resource object.
        Returns:
        an array of byte.
        Throws:
        ReportRenderException - if any.
      • render

        public void render​(java.lang.String inputFileName,
                           java.io.OutputStream outputStream,
                           org.springframework.core.io.Resource xsltResource)
                    throws ReportRenderException

        render

        Specified by:
        render in interface ReportRenderer
        Parameters:
        inputFileName - a String object.
        outputStream - a OutputStream object.
        xsltResource - a Resource object.
        Throws:
        ReportRenderException - if any.
      • render

        public void render​(java.io.InputStream inputStream,
                           java.io.OutputStream outputStream,
                           org.springframework.core.io.Resource xsltResource)
                    throws ReportRenderException

        render

        Specified by:
        render in interface ReportRenderer
        Parameters:
        inputStream - a InputStream object.
        outputStream - a OutputStream object.
        xsltResource - a Resource object.
        Throws:
        ReportRenderException - if any.
      • render

        public void render​(java.lang.String inputFileName,
                           java.lang.String outputFileName,
                           org.springframework.core.io.Resource xsltResource)
                    throws ReportRenderException

        render

        Specified by:
        render in interface ReportRenderer
        Parameters:
        inputFileName - a String object.
        outputFileName - a String object.
        xsltResource - a Resource object.
        Throws:
        ReportRenderException - if any.
      • render

        public void render​(java.io.Reader in,
                           java.io.OutputStream out,
                           java.io.Reader xslt)
                    throws ReportRenderException

        render

        Parameters:
        in - a Reader object.
        out - a OutputStream object.
        xslt - a Reader object.
        Throws:
        ReportRenderException - if any.
      • setXsltResource

        public void setXsltResource​(org.springframework.core.io.Resource xsltResource)

        setXsltResource

        Specified by:
        setXsltResource in interface ReportRenderer
        Parameters:
        xsltResource - a Resource object.
      • setOutputFileName

        public void setOutputFileName​(java.lang.String outputFileName)

        setOutputFileName

        Specified by:
        setOutputFileName in interface ReportRenderer
        Parameters:
        outputFileName - a String object.
      • getOutputFileName

        public java.lang.String getOutputFileName()

        getOutputFileName

        Specified by:
        getOutputFileName in interface ReportRenderer
        Returns:
        a String object.
      • setInputFileName

        public void setInputFileName​(java.lang.String inputFileName)

        setInputFileName

        Specified by:
        setInputFileName in interface ReportRenderer
        Parameters:
        inputFileName - a String object.
      • setBaseDir

        public void setBaseDir​(java.lang.String baseDir)

        setBaseDir

        Specified by:
        setBaseDir in interface ReportRenderer
        Parameters:
        baseDir - a String object.
      • getBaseDir

        public java.lang.String getBaseDir()

        getBaseDir

        Specified by:
        getBaseDir in interface ReportRenderer
        Returns:
        a String object.