This section is dedicated to developer who wish to understand how csvBeans is architectured in order to extend it or just by curiosity.
The library needs a configuration file which is called the "specifications". The SpecificationsFileParser class has the responsability to parse this file and produces an in-memory representation of this file into a SpecificationsFile object. Below is the class diagram of SpecificationsFileParser:
The parser uses the Apache Commons Digester package to parse the specifications file. The SpecificationsFile class is a representation of the content in the specifications file. Here is its interface:
Getter methods are provided to extract the information within the specifications.
Two interfaces define the csvBeans parsing mechanism:
If you need to handle the parsing in a different way of csvBeans, implement one of these interfaces and configure the specifications file to use your implementation.
The idea is similar to the parsers. Therefore, there are two interfaces dedicated to the builders mechanism:
If you need to handle the building in a different way of csvBeans, implement one of these interfaces and configure the specifications file to use your implementation.