-
Notifications
You must be signed in to change notification settings - Fork 25
Explanation's & Deeper understanding
DataType.STANDARD uses a bit less RAM for caching the Data, but on the other Hand the Data is not sorted, which means, that when writing back to the File it might mess up the arrangement and the sequence(it wont make the file unreadable, just the Style might be messed up).
This Storage type is best suited for Files that are only read from and not wrote to by the program or when storing Data.
DataType.SORTED on the other hand is internally sorted, which uses a bit mor RAM, but when writing back to the File everything will look the same except for the values that have been changed.
This Storage type is best suited for Files that are also written to by the program but also need to keep their internal structure.
ReloadSetting.MANUAL means that the FileData will only be reloaded, when you call the forceReload() method.
ReloadSetting.AUTOMATIC means that it will reload the File everytime you access it.
ReloadSetting.INTELLIGENT means that it will only reload when the FileContent has changed since the last access.
The default Settings for normal Files are ConfigSetting.SKIP_COMMENTS, ReloadSetting.INTELLIGENT and DataType.AUTOMATIC DataType.AUTOMATIC means the way it's stored depends on the ReloadSetting(SKIP_COMMENTS uses STANDARD[non sorted] and PRESERVE_COMMENTS uses SORTED) For the Config versions the default is ConfigSetting.PRESERVE_COMMENTS.
2020-2022 - SimplixSoftworks