net.ipip.ipdb.BaseStationInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipdb Show documentation
Show all versions of ipdb Show documentation
IPIP.net Support ipdb database file parser SDK
package net.ipip.ipdb;
public class BaseStationInfo {
private String[] data;
public BaseStationInfo(String[] data) {
this.data = data;
}
public String getCountryName() {
return this.data[0];
}
public String getRegionName() {
return this.data[1];
}
public String getCityName() {
return this.data[2];
}
public String getOwnerDomain() {
return this.data[3];
}
public String getIspDomain() {
return this.data[4];
}
public String getBaseStation() {
return this.data[5];
}
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("country_name:");
sb.append(this.getCountryName());
sb.append("\n");
sb.append("region_name:");
sb.append(this.getRegionName());
sb.append("\n");
sb.append("city_name:");
sb.append(this.getCityName());
sb.append("\n");
sb.append("owner_domain:");
sb.append(this.getOwnerDomain());
sb.append("\n");
sb.append("isp_domain:");
sb.append(this.getIspDomain());
sb.append("\n");
sb.append("base_station:");
sb.append(this.getBaseStation());
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy