What is a good way of coding a file processing program, which accepts multisource data in Java
Posted
by
jjepsuomi
on Stack Overflow
See other posts from Stack Overflow
or by jjepsuomi
Published on 2014-08-04T18:19:59Z
Indexed on
2014/08/23
22:21 UTC
Read the original article
Hit count: 176
I'm making a data prosessing system, which currently is using csv-data as input and output form. In the future I might want to add support for example database-, xml-, etc. typed input and output forms. How should I desing my program so that it would be easy to add support for new type of data sources?
Should simply make for example an abstract data class (which would contain the basic file prosessing methods) and then inherit this class for database, xml, etc. cases?
Hope my question is clear =) In other words my question is: "How to desing a file prosessing system, which can be easily updated to accept input data from different sources (database, XML, Excel, etc.)".
© Stack Overflow or respective owner