Interface JasperreportExporterFactory

All Known Implementing Classes:
Jasperreport.JasperreporteExporterImpl

public interface JasperreportExporterFactory
The factory for Jasper Reports.
Since:
5.0.8
Author:
tony
  • Method Summary

    Modifier and Type
    Method
    Description
    return the content type for specific type For example , xls => "application/vnd.ms-excel";
    Return the file extension name.
    net.sf.jasperreports.engine.JRExporter
    Currently Supported type list.
  • Method Details

    • getJRExporter

      net.sf.jasperreports.engine.JRExporter getJRExporter(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

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

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