A file operation similar to a node, a key value format, There is already a R5 jar tool provided by Com.nikhaldimann, however, if the frequent operation and the attributes are particularly large, even if the common method of extraction is still to write a lot of code, is the entire structure of the code is bloated, and the attributes are particularly many cases, R5 tools will be slightly more trouble, so inieditor- Spread in my work. I extended the annotations to the original R5 toolkit, replacing. Get (section, key) and set (section, key, value) operations, not only the simplicity of reading and writing, but also the implementation of logic, such as when a property value is X, Those attributes do not need to be written to a file, and when certain attributes are null or empty, this property is not saved in the configuration file; more applications please download the source package, where the test package contains detailed examples of the use. Thanks to the original author of the R5 tool, this is a great tool to write.
MAVEN Center Warehouse Address
<!--Https://mvnrepository.com/artifact/com.sirding/inieditor-spread-->
<dependency>
<groupId>com.sirding</groupId>
<artifactId>inieditor-spread</artifactId>
<version>1.0.0-releases</version>
</dependency>
Source Address
Https://github.com/surpassE/inieditor-spread.git
Next version with expanded content:
Extensions are similar to injection or plug-in functionality because the actions of the files are changeable, there may be some logic that I don't take into account, and if you add new annotations again, the parsing process will change, so you need to design this extended feature to meet the user adding annotations at any time, add the annotation parsing process, Use it anytime.