Class CSVMappingParser

java.lang.Object
net.sf.anupam.csv.mapping.CSVMappingParser

public class CSVMappingParser extends Object
XML Parser to parse and return the mapping configuration.
Since:
1.8
Version:
$Revision$
Author:
Anupam Sengupta
  • Constructor Details

    • CSVMappingParser

      public CSVMappingParser()
  • Method Details

    • getMappings

      public Map<String,CSVBeanMapping> getMappings(String xmlFileName, boolean inClassPath)
      Returns the map of parsed mapping configuration beans.
      Parameters:
      xmlFileName - the XML mapping configuration file
      inClassPath - flag indicating whether the XML file is in the classpath
      Returns:
      a map of CSV bean mappings. An empty map is returned if an error occurs