public class GPOSRecord extends Record
| Constructor and Description |
|---|
GPOSRecord(Name name,
int dclass,
long ttl,
double longitude,
double latitude,
double altitude)
Creates an GPOS Record from the given data
|
GPOSRecord(Name name,
int dclass,
long ttl,
String longitude,
String latitude,
String altitude)
Creates an GPOS Record from the given data
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Returns the altitude as a double
|
String |
getAltitudeString()
Returns the altitude as a string
|
double |
getLatitude()
Returns the latitude as a double
|
String |
getLatitudeString()
Returns the latitude as a string
|
double |
getLongitude()
Returns the longitude as a double
|
String |
getLongitudeString()
Returns the longitude as a string
|
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withNamepublic GPOSRecord(Name name, int dclass, long ttl, double longitude, double latitude, double altitude)
longitude - The longitude component of the location.latitude - The latitude component of the location.altitude - The altitude component of the location (in meters above sea
level).public GPOSRecord(Name name, int dclass, long ttl, String longitude, String latitude, String altitude)
longitude - The longitude component of the location.latitude - The latitude component of the location.altitude - The altitude component of the location (in meters above sea
level).public String getLongitudeString()
public double getLongitude()
NumberFormatException - The string does not contain a valid numeric
value.public String getLatitudeString()
public double getLatitude()
NumberFormatException - The string does not contain a valid numeric
value.public String getAltitudeString()
public double getAltitude()
NumberFormatException - The string does not contain a valid numeric
value.