Interface JasperreportExporterFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getContentType​(java.lang.String type)
      return the content type for specific type For example , xls => "application/vnd.ms-excel";
      java.lang.String getFormat​(java.lang.String type)
      Return the file extension name.
      net.sf.jasperreports.engine.JRExporter getJRExporter​(java.lang.String type)
      Currently Supported type list.
    • Method Detail

      • getJRExporter

        net.sf.jasperreports.engine.JRExporter getJRExporter​(java.lang.String type)
        Currently Supported type list.
        1. pdf
        2. xml
        3. html
        4. rtf
        5. xls
        6. jxl
        7. csv
        8. odt
        9. xlsx
        10. docx
        11. graphic2d
        12. ods
        13. pptx
        14. txt
        15. xhtml
        Parameters:
        type -
        Returns:
        JRExporter
      • getFormat

        java.lang.String getFormat​(java.lang.String type)
        Return the file extension name. For example , jxl => "xls" , pdf => "pdf";
        Parameters:
        type -
        Returns:
        String
      • getContentType

        java.lang.String getContentType​(java.lang.String type)
        return the content type for specific type For example , xls => "application/vnd.ms-excel";
        Parameters:
        type -
        Returns:
        String