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
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intfromArray(byte[] array) Returns the Internet addressprotected 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.private static byte[]toArray(int addr) Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Field Details
-
addr
private int addr
-
-
Constructor Details
-
ARecord
ARecord() -
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
-
fromArray
private static int fromArray(byte[] array) -
toArray
private static byte[] toArray(int addr) -
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
-
getAddress
Returns the Internet address -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-