Configurable and reusable data file parser for Java
I am interested in making a data file parser. It should be a reusable and configurable data parser. The description of the d开发者_运维技巧ata format and some rules on how to parse would be in a configuration file (maybe a .xml file). The input file to be parsed is a plain text file and the output file will be a .csv file. So every time I want to parse a file I would only write some data description file and/or mapping file, without the need to change the parsing logic. Do you know some parsers that can do what I want?
may be you want this
If your "data files" are binary files, you might be interested in things like http://harmony.apache.org/subcomponents/classlibrary/asn1_framework.html or http://sourceforge.net/projects/jac-asn1/
精彩评论