Class WeatherCsvParser

All Implemented Interfaces:
IDocumentParser

public class WeatherCsvParser extends CsvParser
A CSV parser specifically for weather data entries.

WeatherCsvParser extends CsvParser to parse CSV files containing daily weather information. Each record is expected to contain fields such as day, maximum temperature, and minimum temperature, which are mapped to WeatherEntry objects.

This parser assumes that the CSV file includes a header row.

See Also:
  • Field Details

  • Constructor Details

    • WeatherCsvParser

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