Class CountryCsvParser

java.lang.Object
de.bcxp.challenge.common.documentParsing.csv.CsvParser
de.bcxp.challenge.countries.CountryCsvParser
All Implemented Interfaces:
IDocumentParser

public class CountryCsvParser extends CsvParser
A CSV parser specialized for parsing country data entries.

CountryParser extends CsvParser to read CSV files containing country information, including country name, population, and area. Each CSV record is mapped to a CountryEntry.

The parser expects the CSV file to contain headers matching the field names: "Name", "Population", and "Area (km²)".

See Also:
  • Field Details

  • Constructor Details

    • CountryCsvParser

      public CountryCsvParser(char delimiter, Locale locale)
      Constructs a CountryCsvParser with the specified CSV delimiter and Locale.
      Parameters:
      delimiter - the character used to separate values in the CSV file.
      locale - Locale used when parsing number
  • Method Details