public class JsonExporter extends JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>
| Modifier and Type | Class and Description |
|---|---|
protected class |
JsonExporter.ExporterContext |
protected static interface |
JsonExporter.PrintBookmarkMixin |
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 |
static String |
REPORT_CONTEXT_PARAMETER_WEB_FONTS |
protected int |
reportIndex |
protected Writer |
writer |
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses| Constructor and Description |
|---|
JsonExporter() |
JsonExporter(JasperReportsContext jasperReportsContext) |
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, getRendererUtil, getReportContext, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final String REPORT_CONTEXT_PARAMETER_WEB_FONTS
public 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()
ensureOutput in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>public String getExporterKey()
public String getExporterPropertiesPrefix()
JRAbstractExportergetExporterPropertiesPrefix in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>public void exportReport()
throws JRException
ExporterexportReport in interface Exporter<ExporterInput,JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput>exportReport in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,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)
public void addFontFamily(HtmlFontFamily htmlFontFamily)
Copyright © 2017. All rights reserved.