title: JasperReport setParameter() Deprecated?
body: <p>I have recently upgraded the Jasper Reports library for my project, from <strong>3.7.6</strong> to <strong>6.0.0</strong>. I can finally Maven build and the reports are working just great. However, the <strong>setParameter()</strong> function appears to have been deprecated between releases, and I am unsure how to refactor my code to accommodate for this. </p>
  
  <h2>Example of Deprecated Code:</h2>
  
  <pre><code>private static void exportMultipleToCSV(Collection&lt;JasperPrint&gt; jasperPrints, OutputStream baos) throws JRException {
      JRCsvExporter csvExporter = new JRCsvExporter();
  
      csvExporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrints);
      csvExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
      csvExporter.setParameter(JRTextExporterParameter.PAGE_HEIGHT, Integer.valueOf(1500000));
      csvExporter.setParameter(JRTextExporterParameter.PAGE_WIDTH, Integer.valueOf(40000000));
      csvExporter.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, Integer.valueOf(4));
      csvExporter.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, Integer.valueOf(15));
  
      csvExporter.exportReport();
  }
  </code></pre>
  
  <p>I have looked through the <a href="http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRExporterParameter.html" rel="nofollow noreferrer" title="SourceForge">SourceForge</a> page, and can see that it has been replaced by <strong>ExporterInput</strong>, <strong>ExporterConfiguration</strong> and <strong>ExporterOutput</strong> but I am unsure how to utilise them all together to achieve the desired output.</p>