All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.dynamicreports.jasper.builder.export.AbstractJasperExporterBuilder Maven / Gradle / Ivy

Go to download

DynamicReports is an open source Java reporting library based on JasperReports. It allows to create dynamic report designs and it doesn't need a visual report designer. You can very quickly create reports and produce documents that can be displayed, printed or exported into many popular formats such as PDF, Excel, Word and others.

The newest version!
/*
 * DynamicReports - Free Java reporting library for creating reports dynamically
 *
 * Copyright (C) 2010 - 2018 Ricardo Mariaca and the Dynamic Reports Contributors
 *
 * This file is part of DynamicReports.
 *
 * DynamicReports is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DynamicReports is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with DynamicReports. If not, see .
 */
package net.sf.dynamicreports.jasper.builder.export;

import net.sf.dynamicreports.jasper.base.export.AbstractJasperExporter;
import net.sf.dynamicreports.report.builder.AbstractBuilder;
import net.sf.dynamicreports.report.constant.Constants;

import java.io.File;
import java.io.OutputStream;
import java.io.Writer;

/**
 * 

Abstract AbstractJasperExporterBuilder class.

* * @author Ricardo Mariaca * */ @SuppressWarnings("unchecked") public abstract class AbstractJasperExporterBuilder, U extends AbstractJasperExporter> extends AbstractBuilder { private static final long serialVersionUID = Constants.SERIAL_VERSION_UID; /** *

Constructor for AbstractJasperExporterBuilder.

* * @param jasperExporter a U object. */ protected AbstractJasperExporterBuilder(U jasperExporter) { super(jasperExporter); } /** *

setOutputWriter.

* * @param outputWriter a {@link java.io.Writer} object. * @return a T object. */ protected T setOutputWriter(Writer outputWriter) { getObject().setOutputWriter(outputWriter); return (T) this; } /** *

setOutputStream.

* * @param outputStream a {@link java.io.OutputStream} object. * @return a T object. */ protected T setOutputStream(OutputStream outputStream) { getObject().setOutputStream(outputStream); return (T) this; } /** *

setOutputFile.

* * @param outputFile a {@link java.io.File} object. * @return a T object. */ protected T setOutputFile(File outputFile) { getObject().setOutputFile(outputFile); return (T) this; } /** *

setOutputFileName.

* * @param outputFileName a {@link java.lang.String} object. * @return a T object. */ protected T setOutputFileName(String outputFileName) { getObject().setOutputFileName(outputFileName); return (T) this; } /** *

setPageIndex.

* * @param pageIndex a {@link java.lang.Integer} object. * @return a T object. */ public T setPageIndex(Integer pageIndex) { getObject().setPageIndex(pageIndex); return (T) this; } /** *

setStartPageIndex.

* * @param startPageIndex a {@link java.lang.Integer} object. * @return a T object. */ public T setStartPageIndex(Integer startPageIndex) { getObject().setStartPageIndex(startPageIndex); return (T) this; } /** *

setEndPageIndex.

* * @param endPageIndex a {@link java.lang.Integer} object. * @return a T object. */ public T setEndPageIndex(Integer endPageIndex) { getObject().setEndPageIndex(endPageIndex); return (T) this; } /** *

setCharacterEncoding.

* * @param characterEncoding a {@link java.lang.String} object. * @return a T object. */ public T setCharacterEncoding(String characterEncoding) { getObject().setCharacterEncoding(characterEncoding); return (T) this; } /** *

setOffsetX.

* * @param offsetX a {@link java.lang.Integer} object. * @return a T object. */ public T setOffsetX(Integer offsetX) { getObject().setOffsetX(offsetX); return (T) this; } /** *

setOffsetY.

* * @param offsetY a {@link java.lang.Integer} object. * @return a T object. */ public T setOffsetY(Integer offsetY) { getObject().setOffsetY(offsetY); return (T) this; } /** *

getExporter.

* * @return a U object. */ public U getExporter() { return build(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy