Package org.xbill.DNS
Class ARecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.ARecord
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Record>
Address Record - maps a domain name to an Internet address
- Author:
- Brian Wellington
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an A Record from the given dataARecord
(Name name, int dclass, long ttl, InetAddress address) Creates an A Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionReturns the Internet addressprotected void
rdataFromString
(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected void
rrFromWire
(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected String
Converts rdata to a Stringprotected void
rrToWire
(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
-
ARecord
Creates an A Record from the given data- Parameters:
address
- The address that the name refers to
-
ARecord
Creates an A Record from the given data- Parameters:
address
- The address that the name refers to- Since:
- 3.6
-
-
Method Details
-
rrFromWire
Description copied from class:Record
Converts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWire
in classRecord
- Throws:
IOException
-
rdataFromString
Description copied from class:Record
Converts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromString
in classRecord
- Throws:
IOException
-
rrToString
Converts rdata to a String- Specified by:
rrToString
in classRecord
-
getAddress
Returns the Internet address -
rrToWire
Description copied from class:Record
Converts the type-specific RR to wire format - must be overridden.
-