public class JsonExporter extends JRAbstractExporter
| Modifier and Type | Class and Description |
|---|---|
protected class |
JsonExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver| Modifier and Type | Field and Description |
|---|---|
protected String |
encoding |
protected JsonExporterContext |
exporterContext |
protected boolean |
flushOutput |
static String |
JSON_EXPORTER_KEY |
protected static String |
JSON_EXPORTER_PROPERTIES_PREFIX |
protected int |
pageIndex |
protected JRExportProgressMonitor |
progressMonitor |
protected int |
reportIndex |
protected Writer |
writer |
allSelector, dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, styledTextUtil| Constructor and Description |
|---|
JsonExporter() |
JsonExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
exportElements(Collection<JRPrintElement> elements) |
protected void |
exportFrame(JRPrintFrame frame) |
protected void |
exportGenericElement(JRGenericPrintElement element) |
protected void |
exportPage(JRPrintPage page) |
void |
exportReport()
Actually starts the export process.
|
protected void |
exportReportToWriter() |
String |
getExporterKey() |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFontMap, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContextpublic static final String JSON_EXPORTER_KEY
protected static final String JSON_EXPORTER_PROPERTIES_PREFIX
protected JRExportProgressMonitor progressMonitor
protected String encoding
protected boolean flushOutput
protected Writer writer
protected int reportIndex
protected int pageIndex
protected JsonExporterContext exporterContext
public JsonExporter()
public JsonExporter(JasperReportsContext jasperReportsContext)
public String getExporterKey()
getExporterKey in class JRAbstractExporterpublic void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionprotected void exportReportToWriter()
throws JRException,
IOException
JRExceptionIOExceptionprotected void exportPage(JRPrintPage page) throws IOException
IOExceptionprotected void exportElements(Collection<JRPrintElement> elements) throws IOException
IOExceptionprotected void exportFrame(JRPrintFrame frame) throws IOException
IOExceptionprotected void exportGenericElement(JRGenericPrintElement element) throws IOException
IOExceptionCopyright © 2014. All rights reserved.