Module Lunchify

Class ExportUtils

java.lang.Object
jku.se.Utilities.ExportUtils

public class ExportUtils extends Object
  • Constructor Details

    • ExportUtils

      public ExportUtils()
  • Method Details

    • exportToJson

      public static boolean exportToJson(Map<String,?> data, String fileName) throws IOException
      Export data map to a JSON file with pretty printing
      Throws:
      IOException
    • exportToCsv

      public static boolean exportToCsv(Map<String,?> data, String baseFileName) throws IOException
      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 IOException
      Export data map to a formatted PDF file with title and multiple pages if needed
      Throws:
      IOException