public class JsonMetadataExporter extends JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
| Modifier and Type | Class and Description |
|---|---|
protected class |
JsonMetadataExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange| Modifier and Type | Field and Description |
|---|---|
protected DateFormat |
isoDateFormat |
static String |
JSON_EXPORTER_DATA_PROPERTY |
static String |
JSON_EXPORTER_KEY |
static String |
JSON_EXPORTER_PATH_PROPERTY |
protected static String |
JSON_EXPORTER_PROPERTIES_PREFIX |
static String |
JSON_EXPORTER_REPEAT_VALUE_PROPERTY |
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 |
|---|
JsonMetadataExporter() |
JsonMetadataExporter(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureOutput() |
void |
exportElement(JRPrintElement element) |
protected void |
exportElements(Collection<JRPrintElement> elements) |
protected void |
exportPage(JRPrintPage page) |
void |
exportReport()
Performs the export.
|
protected void |
exportReportToWriter() |
protected void |
exportText(JRPrintText printText) |
protected Class<JsonExporterConfiguration> |
getConfigurationInterface() |
String |
getExporterKey() |
String |
getExporterPropertiesPrefix()
Returns the properties prefix for the current exporter.
|
protected Class<JsonMetadataReportConfiguration> |
getItemConfigurationInterface() |
protected JRStyledText |
getStyledText(JRPrintText textElement) |
protected void |
initExport() |
protected void |
initReport() |
void |
validateSchema(String jsonSchema) |
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, 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
public static final String JSON_EXPORTER_PATH_PROPERTY
public static final String JSON_EXPORTER_REPEAT_VALUE_PROPERTY
public static final String JSON_EXPORTER_DATA_PROPERTY
protected final DateFormat isoDateFormat
protected Writer writer
protected int reportIndex
protected int pageIndex
public JsonMetadataExporter()
public JsonMetadataExporter(JasperReportsContext jasperReportsContext)
public void validateSchema(String jsonSchema) throws JRException
JRExceptionprotected Class<JsonExporterConfiguration> getConfigurationInterface()
protected Class<JsonMetadataReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public String getExporterKey()
public String getExporterPropertiesPrefix()
JRAbstractExportergetExporterPropertiesPrefix in class JRAbstractExporter<JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>public void exportReport()
throws JRException
ExporterexportReport in interface Exporter<ExporterInput,JsonMetadataReportConfiguration,JsonExporterConfiguration,WriterExporterOutput>exportReport in class JRAbstractExporter<JsonMetadataReportConfiguration,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
IOExceptionpublic void exportElement(JRPrintElement element) throws IOException
IOExceptionprotected void exportText(JRPrintText printText) throws IOException
IOExceptionprotected JRStyledText getStyledText(JRPrintText textElement)
Copyright © 2015. All rights reserved.