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, setReportContext
public 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()
JRAbstractExporter
getExporterPropertiesPrefix
in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>
public void exportReport() throws JRException
Exporter
exportReport
in interface Exporter<ExporterInput,JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput>
exportReport
in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>
JRException
protected void initExport()
protected void initReport()
protected void exportReportToWriter() throws JRException, IOException
JRException
IOException
protected void exportPage(JRPrintPage page) throws IOException
IOException
protected void exportElements(Collection<JRPrintElement> elements) throws IOException
IOException
protected void exportFrame(JRPrintFrame frame) throws IOException
IOException
protected void exportBookmarks() throws IOException
IOException
protected void exportParts() throws IOException
IOException
protected void exportWebFonts() throws IOException
IOException
protected void exportHyperlinks() throws IOException
IOException
protected void exportGenericElement(JRGenericPrintElement element) throws IOException
IOException
protected String resolveHyperlinkURL(int reportIndex, JRPrintHyperlink link)
public void addHyperlinkData(HyperlinkData hyperlinkData)
public void addFontFamily(HtmlFontFamily htmlFontFamily)
Copyright © 2016. All rights reserved.