public class LOCRecord extends Record
| Constructor and Description |
|---|
LOCRecord(Name name,
int dclass,
long ttl,
double latitude,
double longitude,
double altitude,
double size,
double hPrecision,
double vPrecision)
Creates an LOC Record from the given data
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAltitude()
Returns the altitude
|
double |
getHPrecision()
Returns the horizontal precision
|
double |
getLatitude()
Returns the latitude
|
double |
getLongitude()
Returns the longitude
|
double |
getSize()
Returns the diameter of the enclosing sphere
|
double |
getVPrecision()
Returns the horizontal precision
|
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 LOCRecord(Name name, int dclass, long ttl, double latitude, double longitude, double altitude, double size, double hPrecision, double vPrecision)
latitude - The latitude of the center of the spherelongitude - The longitude of the center of the spherealtitude - The altitude of the center of the sphere, in msize - The diameter of a sphere enclosing the described entity, in m.hPrecision - The horizontal precision of the data, in m.vPrecision - The vertical precision of the data, in m.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 double getLatitude()
public double getLongitude()
public double getAltitude()
public double getSize()
public double getHPrecision()
public double getVPrecision()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
RecordCopyright © 2021 dnsjava.org. All rights reserved.