Class that implements the DataAccess interface to manage data using a file-based storage system. It reads and writes data in JSON format from/to a file.
DataAccess
Creates an instance of FileDataAccess.
FileDataAccess
The path to the data file.
Static
The file extension for the data file.
Checks if the current data file has any children in the root element.
True if the root element has no children.
Checks if a string is blank (empty or contains only whitespace).
The string to check.
True if the string is blank.
Loads the data from the data file. If the file does not exist or is empty, the default root element is saved and returned.
The parsed data from the file.
Saves the given snippet data to the data file.
The snippet data to save.
Sets the path of the data file.
The new data file path.
Resolves the filename of the data file based on a given folder path.
The path of the folder.
The full path of the data file.
Class that implements the
DataAccess
interface to manage data using a file-based storage system. It reads and writes data in JSON format from/to a file.