Package br.com.caelum.vraptor.jasperreports.formats

Source Code of br.com.caelum.vraptor.jasperreports.formats.Odt

package br.com.caelum.vraptor.jasperreports.formats;

import net.sf.jasperreports.engine.JRExporter;
import net.sf.jasperreports.engine.export.oasis.JROdtExporter;
import br.com.caelum.vraptor.ioc.Component;

/**
* @author William Pivotto
*/

@Component
public class Odt extends AbstractExporter {

  public String getContentType() {
    return "application/vnd.oasis.opendocument.text";
  }
 
  public String getExtension() {
    return "odt";
  }

  public JRExporter setup() {
    return new JROdtExporter();
  }

}
TOP

Related Classes of br.com.caelum.vraptor.jasperreports.formats.Odt

TOP
Copyright © 2018 www.massapi.com. 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.