public class Region extends Object
Copyright (c) 2002-2023 IP2Location.com
| Constructor and Description |
|---|
Region(String CSVFile)
This constructor reads the region information CSV and store the parsed info.
|
| Modifier and Type | Method and Description |
|---|---|
String |
GetRegionCode(String CountryCode,
String RegionName)
This function gets the region code for the supplied country code and region name.
|
public Region(String CSVFile) throws IOException, com.opencsv.exceptions.CsvValidationException
CSVFile - The full path to the region information CSV file.IOExceptioncom.opencsv.exceptions.CsvValidationExceptionpublic String GetRegionCode(String CountryCode, String RegionName) throws IOException
CountryCode - ISO-3166 country codeRegionName - Region nameIOExceptionCopyright © 2017–2023. All rights reserved.