org.xbill.DNS
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,
java.lang.String longitude,
java.lang.String latitude,
java.lang.String altitude)
Creates an GPOS Record from the given data
|
Modifier and Type | Method and Description |
---|---|
double |
getAltitude()
Returns the altitude as a double
|
java.lang.String |
getAltitudeString()
Returns the altitude as a string
|
double |
getLatitude()
Returns the latitude as a double
|
java.lang.String |
getLatitudeString()
Returns the latitude as a string
|
double |
getLongitude()
Returns the longitude as a double
|
java.lang.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, withName
public 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, java.lang.String longitude, java.lang.String latitude, java.lang.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 java.lang.String getLongitudeString()
public double getLongitude()
java.lang.NumberFormatException
- The string does not contain a valid numeric
value.public java.lang.String getLatitudeString()
public double getLatitude()
java.lang.NumberFormatException
- The string does not contain a valid numeric
value.public java.lang.String getAltitudeString()
public double getAltitude()
java.lang.NumberFormatException
- The string does not contain a valid numeric
value.