java.lang.Object
jku.se.Utilities.ExportUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
exportToCsv
(Map<String, ?> data, String baseFileName) Export data map to a CSV file with escaped valuesstatic boolean
exportToJson
(Map<String, ?> data, String fileName) Export data map to a JSON file with pretty printingstatic boolean
exportToPdf
(Map<String, ?> data, String title, String baseFileName) Export data map to a formatted PDF file with title and multiple pages if needed
-
Constructor Details
-
ExportUtils
public ExportUtils()
-
-
Method Details
-
exportToJson
Export data map to a JSON file with pretty printing- Throws:
IOException
-
exportToCsv
Export data map to a CSV file with escaped values- Throws:
IOException
-
exportToPdf
public static boolean exportToPdf(Map<String, ?> data, String title, String baseFileName) throws IOExceptionExport data map to a formatted PDF file with title and multiple pages if needed- Throws:
IOException
-