public class RTRecord extends Record
Modifier and Type | Field and Description |
---|---|
protected Name |
nameField |
protected int |
u16Field |
Constructor and Description |
---|
RTRecord(Name name,
int dclass,
long ttl,
int preference,
Name intermediateHost)
Creates an RT Record from the given data
|
Modifier and Type | Method and Description |
---|---|
Name |
getIntermediateHost()
Gets the host to use as a router.
|
protected Name |
getNameField() |
int |
getPreference()
Gets the preference of the route.
|
protected int |
getU16Field() |
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()
Converts the type-specific RR to text format - must be overridden.
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
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
protected int u16Field
protected Name nameField
public RTRecord(Name name, int dclass, long ttl, int preference, Name intermediateHost)
preference
- The preference of the route. Smaller numbers indicate more preferred routes.intermediateHost
- The domain name of the host to use as a router.public int getPreference()
public Name getIntermediateHost()
protected void rrFromWire(DNSInput in) throws IOException
Record
rrFromWire
in class Record
IOException
protected void rdataFromString(Tokenizer st, Name origin) throws IOException
Record
rdataFromString
in class Record
IOException
protected String rrToString()
Record
rrToString
in class Record
protected int getU16Field()
protected Name getNameField()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
Copyright © 2022 dnsjava.org. All rights reserved.