public class Country extends Object
Copyright (c) 2002-2023 IP2Location.com
| Constructor and Description |
|---|
Country(String CSVFile)
This constructor reads the country information CSV and store the parsed info.
|
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
GetCountryInfo()
This function gets the country information for all countries.
|
Map<String,String> |
GetCountryInfo(String CountryCode)
This function gets the country information for the supplied country code.
|
public Country(String CSVFile) throws IOException, com.opencsv.exceptions.CsvValidationException
CSVFile - The full path to the country information CSV file.IOExceptioncom.opencsv.exceptions.CsvValidationExceptionpublic Map<String,String> GetCountryInfo(String CountryCode) throws IOException
CountryCode - ISO-3166 country codeIOExceptionpublic List<Map<String,String>> GetCountryInfo() throws IOException
IOExceptionCopyright © 2017–2023. All rights reserved.