Package net.sf.jasperreports.json.export
Class JsonExporter
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>
net.sf.jasperreports.json.export.JsonExporter
- All Implemented Interfaces:
Exporter<ExporterInput,JsonReportConfiguration, JsonExporterConfiguration, JsonExporterOutput>
public class JsonExporter
extends JRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration,JsonExporterOutput,JsonExporterContext>
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected static interfaceNested classes/interfaces inherited from class net.sf.jasperreports.engine.JRAbstractExporter
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringprotected intstatic final Stringprotected intprotected WriterFields inherited from class net.sf.jasperreports.engine.JRAbstractExporter
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_EMPTY_INPUT_SOURCE_IN_BATCH_MODE, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_NO_INPUT_SOURCE, EXCEPTION_MESSAGE_KEY_NO_OUTPUT_SPECIFIED, 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, hyperlinkProducerFactory, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFontFamily(HtmlFontFamily htmlFontFamily) voidaddHyperlinkData(HyperlinkData hyperlinkData) protected voidprotected voidprotected voidexportElements(Collection<JRPrintElement> elements) protected voidexportFrame(JRPrintFrame frame) protected voidprotected voidprotected voidexportPage(JRPrintPage page) protected voidvoidPerforms the export.protected voidprotected voidprotected voidprotected Class<JsonExporterConfiguration> Returns the properties prefix for the current exporter.protected Class<JsonReportConfiguration> protected voidprotected voidprotected StringresolveHyperlinkURL(int reportIndex, JRPrintHyperlink link) static voidwriteBookmarks(List<PrintBookmark> bookmarks, Writer writer, JacksonUtil jacksonUtil) static voidwriteParts(JasperPrint jasperPrint, Writer writer) static voidwriteParts(JasperPrint jasperPrint, PrintParts parts, Writer writer) static voidwriteParts(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint, Writer writer) Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter
checkInterrupted, createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, ensureOutput, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getDateCellValue, getDateFormat, getExporterConfiguration, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getPropertiesUtil, getRendererUtil, getReportContext, getReportExportConfiguration, getRepository, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetExportContext, restoreElementOffsets, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperReportsContext, setOffset, setOffset, setReportContext
-
Field Details
-
REPORT_CONTEXT_PARAMETER_WEB_FONTS
- See Also:
-
JSON_EXPORTER_KEY
- See Also:
-
JSON_EXPORTER_PROPERTIES_PREFIX
- See Also:
-
writer
-
reportIndex
protected int reportIndex -
pageIndex
protected int pageIndex
-
-
Constructor Details
-
JsonExporter
public JsonExporter() -
JsonExporter
-
-
Method Details
-
getConfigurationInterface
-
getItemConfigurationInterface
-
getExporterKey
-
getExporterPropertiesPrefix
Description copied from class:JRAbstractExporterReturns the properties prefix for the current exporter.- Specified by:
getExporterPropertiesPrefixin classJRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration, JsonExporterOutput, JsonExporterContext> - Returns:
- the properties prefix for the current exporter
-
exportReport
Description copied from interface:ExporterPerforms the export.- Specified by:
exportReportin interfaceExporter<ExporterInput,JsonReportConfiguration, JsonExporterConfiguration, JsonExporterOutput> - Specified by:
exportReportin classJRAbstractExporter<JsonReportConfiguration,JsonExporterConfiguration, JsonExporterOutput, JsonExporterContext> - Throws:
JRException
-
initExport
protected void initExport() -
initReport
protected void initReport() -
exportReportToWriter
- Throws:
JRExceptionIOException
-
exportPage
-
exportElements
protected void exportElements(Collection<JRPrintElement> elements) throws IOException, ExportInterruptedException -
exportFrame
-
exportBookmarks
- Throws:
IOException
-
exportReportConfig
- Throws:
IOException
-
writeBookmarks
public static void writeBookmarks(List<PrintBookmark> bookmarks, Writer writer, JacksonUtil jacksonUtil) throws IOException - Throws:
IOException
-
exportParts
- Throws:
IOException
-
writeParts
- Throws:
IOException
-
writeParts
public static void writeParts(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint, Writer writer) throws IOException - Throws:
IOException
-
writeParts
public static void writeParts(JasperPrint jasperPrint, PrintParts parts, Writer writer) throws IOException - Throws:
IOException
-
exportWebFonts
- Throws:
IOException
-
exportHyperlinks
- Throws:
IOException
-
exportClickableElements
- Throws:
IOException
-
exportGenericElement
- Throws:
IOException
-
resolveHyperlinkURL
-
addHyperlinkData
-
addFontFamily
-