Package org.xbill.DNS
Class RTRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.RTRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Route Through Record - lists a route preference and intermediate host.
- Author:
- Brian Wellington
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the host to use as a router.protected NameintGets the preference of the route.protected intprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts the type-specific RR to text format - must be overridden.protected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Field Details
-
u16Field
protected int u16Field -
nameField
-
-
Constructor Details
-
RTRecord
Creates an RT Record from the given data- Parameters:
preference- The preference of the route. Smaller numbers indicate more preferred routes.intermediateHost- The domain name of the host to use as a router.
-
-
Method Details
-
getPreference
public int getPreference()Gets the preference of the route. -
getIntermediateHost
Gets the host to use as a router. -
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
getU16Field
protected int getU16Field() -
getNameField
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-