Class JsonWriterReader

java.lang.Object
preponderous.ponder.misc.JsonWriterReader

public class JsonWriterReader extends Object
  • Constructor Details

    • JsonWriterReader

      public JsonWriterReader()
  • Method Details

    • initialize

      public void initialize(String filePath)
      Method to initialize the file path.
      Parameters:
      filePath - to initialize with.
    • writeOutFiles

      public boolean writeOutFiles(List<Map<String,​String>> saveData, String fileName)
      Method to write out some data to a file.
      Parameters:
      saveData - to save.
      fileName - to save to.
      Returns:
      boolean signifying whether or not the operation was successful.
    • loadDataFromFilename

      public ArrayList<HashMap<String,​String>> loadDataFromFilename(String filename)
      Method to load data from a filename.
      Parameters:
      filename - to specify which file to load from.
      Returns:
      ArrayList<HashMap<String,​String>> containing the data from the file.