Package org.pentaho.cdf.export

Examples of org.pentaho.cdf.export.ExportCSV


        final String exportType = requestParams.getStringParameter( Parameter.EXPORT_TYPE, IExport.EXPORT_TYPE_EXCEL );

        Export export;

        if ( exportType.equals( IExport.EXPORT_TYPE_CSV ) ) {
          export = new ExportCSV( output );
          setResponseHeaders( MimeTypes.CSV, 0, "export" + export.getExtension() );
        } else {
          export = new ExportExcel( output );
          setResponseHeaders( MIME_XLS, 0, "export" + export.getExtension() );
        }
View Full Code Here


    if ( ActionEngine.getInstance().executeAction( value, contentType, request, response,
        PentahoSessionHolder.getSession(), Parameter.asHashMap( request ) ) ) {
      Export export;

      if ( IExport.EXPORT_TYPE_CSV.equalsIgnoreCase( exportType ) ) {
        export = new ExportCSV( response.getOutputStream() );
        response.setHeader( "Content-Type", MimeTypes.CSV );

      } else {
        export = new ExportExcel( response.getOutputStream() );
        response.setHeader( "Content-Type", MimeTypes.XLS );
View Full Code Here

                final String exportType = requestParams.getStringParameter("exportType", "excel");

                Export export;

                if (exportType.equals("csv")) {
                    export = new ExportCSV(output);
                    setResponseHeaders(MIME_CSV, 0, "export" + export.getExtension());
                } else {
                    export = new ExportExcel(output);
                    setResponseHeaders(MIME_XLS, 0, "export" + export.getExtension());
                }
View Full Code Here

TOP

Related Classes of org.pentaho.cdf.export.ExportCSV

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.