Package org.xbill.DNS
Class A6Record
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.A6Record
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
A6 Record - maps a domain name to an IPv6 address (historic)
- Author:
- Brian Wellington
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionA6Record(Name name, int dclass, long ttl, int prefixBits, InetAddress suffix, Name prefix) Creates an A6 Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionReturns the address prefixintReturns the number of bits in the prefixReturns the address suffixprotected 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 rdata to a Stringprotected 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
-
Constructor Details
-
A6Record
Creates an A6 Record from the given data- Parameters:
prefixBits- The number of bits in the address prefixsuffix- The address suffixprefix- The name of the prefix
-
-
Method Details
-
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
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getPrefixBits
public int getPrefixBits()Returns the number of bits in the prefix -
getSuffix
Returns the address suffix -
getPrefix
Returns the address prefix -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-