Class DataParser

java.lang.Object
javatro.storage.DataParser

public class DataParser extends Object
The DataParser class provides static utility methods for parsing, validating, and loading CSV data related to game runs. This class is intended to work with the StorageManager and does not maintain its own state.

All methods in this class are static, making it a utility class. Constants related to CSV parsing are defined here for easy access.

  • Field Details

  • Method Details

    • isCSVDataValid

      public static boolean isCSVDataValid(String csvRawData)
      Validates the provided CSV data for structural integrity, hash consistency, and logical validity.
      Parameters:
      csvRawData - The raw CSV data as a String.
      Returns:
      true if all rows in the CSV data are valid, otherwise false.
    • loadCSVData

      public static void loadCSVData(String csvRawData)
      Loads the CSV data into the StorageManager.
      Parameters:
      csvRawData - The raw CSV data as a String.