Package org.xbill.DNS
Class SingleNameBase
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SingleNameBase
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
- Direct Known Subclasses:
DNAMERecord,MBRecord,MDRecord,MFRecord,MGRecord,MRRecord,NSAP_PTRRecord,SingleCompressedNameBase
Implements common functionality for the many record types whose format is a single name.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedSingleNameBase(Name name, int type, int dclass, long ttl) protectedSingleNameBase(Name name, int type, int dclass, long ttl, Name singleName, String description) -
Method Summary
Modifier and TypeMethodDescriptionprotected Nameprotected 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, 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
-
singleName
-
-
Constructor Details
-
SingleNameBase
protected SingleNameBase() -
SingleNameBase
-
SingleNameBase
-
-
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
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
getSingleName
-
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-