What is the difference between JasperReport formats?

I found four files. Each of them represents JasperReport. there is

A.jasper, A.jrprint, A.jrpxml, A.jrxml 

What is the difference between the two? And what is the purpose of each of them?

+5
source share
1 answer
  • .jrxml is a human-readable XML file containing a report template, i.e. report structure and its formatting rules.
  • .jasper is a compiled report template, that is, a compiled .jrxml file. This file is used as a template argument in the JasperReports API.
  • .jrprint is a serialized JasperPrint object, i.e. the actual report instance, i.e. a template populated with data. This file can be deserialized back to the JasperPrint object.
  • . jrpxml is a user-readable XML representation of a JasperPrint object, that is, an XML version of a template populated with data. This file can be undone back to the JasperPrint object.
+6
source

Source: https://habr.com/ru/post/1235657/


All Articles