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_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| 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) |
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, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic 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()
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,
java.io.IOException
JRExceptionjava.io.IOExceptionprotected void exportPage(JRPrintPage page) throws java.io.IOException
java.io.IOExceptionprotected void exportElements(java.util.Collection<JRPrintElement> elements) throws java.io.IOException
java.io.IOExceptionprotected void exportFrame(JRPrintFrame frame) throws java.io.IOException
java.io.IOExceptionprotected void exportBookmarks()
throws java.io.IOException
java.io.IOExceptionprotected void exportWebFonts()
throws java.io.IOException
java.io.IOExceptionprotected void exportHyperlinks()
throws java.io.IOException
java.io.IOExceptionprotected void exportGenericElement(JRGenericPrintElement element) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String resolveHyperlinkURL(int reportIndex,
JRPrintHyperlink link)
public void addHyperlinkData(HyperlinkData hyperlinkData)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com