Inieditor extended usage based on annotations (Java read-write. ini file)

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.