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 java.lang.String |
JSON_EXPORTER_KEY |
protected static java.lang.String |
JSON_EXPORTER_PROPERTIES_PREFIX |
protected int |
pageIndex |
protected int |
reportIndex |
protected java.io.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, 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(java.util.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 java.lang.Class<JsonExporterConfiguration> |
getConfigurationInterface() |
java.lang.String |
getExporterKey() |
java.lang.String |
getExporterPropertiesPrefix()
Returns the properties prefix for the current exporter.
|
protected java.lang.Class<JsonReportConfiguration> |
getItemConfigurationInterface() |
protected void |
initExport() |
protected void |
initReport() |
protected java.lang.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, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContext
public static final java.lang.String JSON_EXPORTER_KEY
protected static final java.lang.String JSON_EXPORTER_PROPERTIES_PREFIX
protected java.io.Writer writer
protected int reportIndex
protected int pageIndex
public JsonExporter()
public JsonExporter(JasperReportsContext jasperReportsContext)
protected java.lang.Class<JsonExporterConfiguration> getConfigurationInterface()
protected java.lang.Class<JsonReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public java.lang.String getExporterKey()
public java.lang.String getExporterPropertiesPrefix()
JRAbstractExporter
getExporterPropertiesPrefix
in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
public void exportReport() throws JRException
Exporter
exportReport
in interface Exporter<ExporterInput,JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput>
exportReport
in class JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,WriterExporterOutput,JsonExporterContext>
JRException
protected void initExport()
protected void initReport()
protected void exportReportToWriter() throws JRException, java.io.IOException
JRException
java.io.IOException
protected void exportPage(JRPrintPage page) throws java.io.IOException
java.io.IOException
protected void exportElements(java.util.Collection<JRPrintElement> elements) throws java.io.IOException
java.io.IOException
protected void exportFrame(JRPrintFrame frame) throws java.io.IOException
java.io.IOException
protected void exportBookmarks() throws java.io.IOException
java.io.IOException
protected void exportParts() throws java.io.IOException
java.io.IOException
protected void exportWebFonts() throws java.io.IOException
java.io.IOException
protected void exportHyperlinks() throws java.io.IOException
java.io.IOException
protected void exportGenericElement(JRGenericPrintElement element) throws java.io.IOException
java.io.IOException
protected java.lang.String resolveHyperlinkURL(int reportIndex, JRPrintHyperlink link)
public void addHyperlinkData(HyperlinkData hyperlinkData)
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com