Package com.maxmind.geoip
Class DatabaseInfo
java.lang.Object
com.maxmind.geoip.DatabaseInfo
Encapsulates metadata about the GeoIP database. The database has a date, is a
premium or standard version, and is one of the following types:
- Country edition -- this is the most common version of the database. It includes the name of the country and it's ISO country code given an IP address.
- Region edition -- includes the country information as well as what U.S. state or Canadian province the IP address is from if the IP address is from the U.S. or Canada.
- City edition -- includes country, region, city, postal code, latitude, and longitude information.
- Org edition -- includes netblock owner.
- ISP edition -- ISP information.
- Author:
- Matt Tucker
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionDatabaseInfo
(String info) Creates a new DatabaseInfo object given the database info String. -
Method Summary
-
Field Details
-
COUNTRY_EDITION
public static final int COUNTRY_EDITION- See Also:
-
REGION_EDITION_REV0
public static final int REGION_EDITION_REV0- See Also:
-
REGION_EDITION_REV1
public static final int REGION_EDITION_REV1- See Also:
-
CITY_EDITION_REV0
public static final int CITY_EDITION_REV0- See Also:
-
CITY_EDITION_REV1
public static final int CITY_EDITION_REV1- See Also:
-
ORG_EDITION
public static final int ORG_EDITION- See Also:
-
ISP_EDITION
public static final int ISP_EDITION- See Also:
-
PROXY_EDITION
public static final int PROXY_EDITION- See Also:
-
ASNUM_EDITION
public static final int ASNUM_EDITION- See Also:
-
NETSPEED_EDITION
public static final int NETSPEED_EDITION- See Also:
-
DOMAIN_EDITION
public static final int DOMAIN_EDITION- See Also:
-
COUNTRY_EDITION_V6
public static final int COUNTRY_EDITION_V6- See Also:
-
ASNUM_EDITION_V6
public static final int ASNUM_EDITION_V6- See Also:
-
ISP_EDITION_V6
public static final int ISP_EDITION_V6- See Also:
-
ORG_EDITION_V6
public static final int ORG_EDITION_V6- See Also:
-
DOMAIN_EDITION_V6
public static final int DOMAIN_EDITION_V6- See Also:
-
CITY_EDITION_REV1_V6
public static final int CITY_EDITION_REV1_V6- See Also:
-
CITY_EDITION_REV0_V6
public static final int CITY_EDITION_REV0_V6- See Also:
-
NETSPEED_EDITION_REV1
public static final int NETSPEED_EDITION_REV1- See Also:
-
NETSPEED_EDITION_REV1_V6
public static final int NETSPEED_EDITION_REV1_V6- See Also:
-
-
Constructor Details
-
DatabaseInfo
Creates a new DatabaseInfo object given the database info String.- Parameters:
info
-
-
-
Method Details