public class JsonExporter extends JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
| Modifier and Type | Class and Description |
|---|---|
protected class |
JsonExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_EXPORTER_KEY |
protected static String |
JSON_EXPORTER_PROPERTIES_PREFIX |
protected int |
pageIndex |
protected int |
reportIndex |
protected Writer |
writer |
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, styledTextUtil, textValueClasses| Constructor and Description |
|---|
JsonExporter() |
JsonExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHyperlinkData(HyperlinkData hyperlinkData) |
protected void |
ensureOutput() |
protected void |
exportBookmarks() |
protected void |
exportElements(Collection<JRPrintElement> elements) |
protected void |
exportFrame(JRPrintFrame frame) |
protected void |
exportGenericElement(JRGenericPrintElement element) |
protected void |
exportHyperlinks() |
protected void |
exportPage(JRPrintPage page) |
protected void |
exportParts() |
void |
exportReport()
Performs the export.
|
protected void |
exportReportToWriter() |
protected void |
exportWebFonts() |
protected Class<JsonExporterConfiguration> |
getConfigurationInterface() |
String |
getExporterKey() |
String |
getExporterPropertiesPrefix()
Returns the properties prefix for the current exporter.
|
protected Class<JsonReportConfiguration> |
getItemConfigurationInterface() |
protected void |
initExport() |
protected void |
initReport() |
protected String |
resolveHyperlinkURL(int reportIndex,
JRPrintHyperlink link) |
createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getReportContext, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final String JSON_EXPORTER_KEY
protected static final String JSON_EXPORTER_PROPERTIES_PREFIX
protected Writer writer
protected int reportIndex
protected int pageIndex
public JsonExporter()
public JsonExporter(JasperReportsContext jasperReportsContext)
protected Class<JsonExporterConfiguration> getConfigurationInterface()
protected Class<JsonReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public String getExporterKey()
public String getExporterPropertiesPrefix()
JRAbstractExportergetExporterPropertiesPrefix in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>public void exportReport()
throws JRException
ExporterexportReport in interface Exporter<ExporterInput,JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput>exportReport in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>JRExceptionprotected void initExport()
protected void initReport()
protected 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 exportBookmarks()
throws IOException
IOExceptionprotected void exportParts()
throws IOException
IOExceptionprotected void exportWebFonts()
throws IOException
IOExceptionprotected void exportHyperlinks()
throws IOException
IOExceptionprotected void exportGenericElement(JRGenericPrintElement element) throws IOException
IOExceptionprotected String resolveHyperlinkURL(int reportIndex, JRPrintHyperlink link)
public void addHyperlinkData(HyperlinkData hyperlinkData)
Copyright © 2015. All rights reserved.