public class GPOSRecord extends Record
LOCRecord)| 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
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected String |
rrToString()
Convert to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overriden
|
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).protected void rrFromWire(DNSInput in) throws IOException
RecordrrFromWire in class RecordIOExceptionprotected void rdataFromString(Tokenizer st, Name origin) throws IOException
RecordrdataFromString in class RecordIOExceptionprotected String rrToString()
rrToString in class Recordpublic 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.protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
RecordCopyright © 2021 dnsjava.org. All rights reserved.