/**
 * 
 */
package it.mice.voila.runtime.jasper.view;

import it.mice.voila.runtime.jasper.view.helpers.AbstractJasperReportsSingleFormatView;
import net.sf.jasperreports.engine.JRExporter;
import net.sf.jasperreports.engine.export.JRRtfExporter;


/**
 *
 */
public class JasperReportsRtfView extends AbstractJasperReportsSingleFormatView {
	public JasperReportsRtfView() {
		setContentType("application/vnd.ms-word");
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see it.mice.voila.runtime.jasper.view.helpers.jasperreports.AbstractJasperReportsSingleFormatView#createExporter()
	 */
	@Override
	protected JRExporter createExporter() {
		return new JRRtfExporter();
	}

	/**
	 * {@inheritDoc}
	 * 
	 * @see it.mice.voila.runtime.jasper.view.helpers.jasperreports.AbstractJasperReportsSingleFormatView#useWriter()
	 */
	@Override
	protected boolean useWriter() {
		return false;
	}
}
