Class CSVMappingParser

java.lang.Object
org.csvobjects.csv.mapping.CSVMappingParser

public class CSVMappingParser extends Object
XML Parser to parse and return the mapping configuration.
Since:
1.8
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
      Throws:
      CSVOException - thrown if the mapping file cannot be found, read, or parsed