private Location readCityRecord(int seekCountry) throws IOException { if (seekCountry == databaseSegments[0]) { return null; } ByteBuffer buffer = readRecordBuf(seekCountry, FULL_RECORD_LENGTH); Location record = new Location(); int country = unsignedByteToInt(buffer.get()); // get country record.countryCode = countryCode[country]; record.countryName = countryName[country]; record.region = readString(buffer); record.city = readString(buffer); record.postalCode = readString(buffer); record.latitude = readAngle(buffer); record.longitude = readAngle(buffer); if (databaseType == DatabaseInfo.CITY_EDITION_REV1) { // get DMA code if ("US".equals(record.countryCode)) { int metroarea_combo = readMetroAreaCombo(buffer); record.metro_code = record.dma_code = metroarea_combo / 1000; record.area_code = metroarea_combo % 1000; } } return record; }
public Location getLocationwithdnsservice(String str) { Location record = new Location(); String key; String value;
public Location getLocationwithdnsservice(String str) { Location record = new Location(); String key; String value;
public Location getLocationwithdnsservice(String str) { Location record = new Location(); String key; String value;
byte record_buf[] = new byte[FULL_RECORD_LENGTH]; int record_buf_offset = 0; Location record = new Location(); int str_length = 0; int j, seek_country;
byte record_buf[] = new byte[FULL_RECORD_LENGTH]; int record_buf_offset = 0; Location record = new Location(); int str_length = 0; int j, seek_country;
byte record_buf[] = new byte[FULL_RECORD_LENGTH]; int record_buf_offset = 0; Location record = new Location(); int str_length = 0; int j, seek_country;
byte record_buf[] = new byte[FULL_RECORD_LENGTH]; int record_buf_offset = 0; Location record = new Location(); int str_length = 0; int j, seek_country;
byte record_buf[] = new byte[FULL_RECORD_LENGTH]; int record_buf_offset = 0; Location record = new Location(); int str_length = 0; int j, seek_country;
byte record_buf[] = new byte[FULL_RECORD_LENGTH]; int record_buf_offset = 0; Location record = new Location(); int str_length = 0; int j, seek_country;
private Location readCityRecord(int seekCountry) throws IOException { if (seekCountry == databaseSegments[0]) { return null; } ByteBuffer buffer = readRecordBuf(seekCountry, FULL_RECORD_LENGTH); Location record = new Location(); int country = unsignedByteToInt(buffer.get()); // get country record.countryCode = countryCode[country]; record.countryName = countryName[country]; record.region = readString(buffer); record.city = readString(buffer); record.postalCode = readString(buffer); record.latitude = readAngle(buffer); record.longitude = readAngle(buffer); // get DMA code if (databaseType == DatabaseInfo.CITY_EDITION_REV1 && "US".equals(record.countryCode)) { int metroareaCombo = readMetroAreaCombo(buffer); record.metro_code = record.dma_code = metroareaCombo / 1000; record.area_code = metroareaCombo % 1000; } return record; }
private Location readCityRecord(int seekCountry) throws IOException { if (seekCountry == databaseSegments[0]) { return null; } ByteBuffer buffer = readRecordBuf(seekCountry, FULL_RECORD_LENGTH); Location record = new Location(); int country = unsignedByteToInt(buffer.get()); // get country record.countryCode = countryCode[country]; record.countryName = countryName[country]; record.region = readString(buffer); record.city = readString(buffer); record.postalCode = readString(buffer); record.latitude = readAngle(buffer); record.longitude = readAngle(buffer); if (databaseType == DatabaseInfo.CITY_EDITION_REV1) { // get DMA code if ("US".equals(record.countryCode)) { int metroarea_combo = readMetroAreaCombo(buffer); record.metro_code = record.dma_code = metroarea_combo / 1000; record.area_code = metroarea_combo % 1000; } } return record; }