1
// Copyright (c) 2004 Brian Wellington (bwelling@xbill.org)
8
* Implements common functionality for the many record types whose format
11
* @author Brian Wellington
14
abstract class SingleNameBase extends Record {
16
protected Name singleName;
22
SingleNameBase(Name name, int type, int dclass, long ttl) {
23
super(name, type, dclass, ttl);
27
SingleNameBase(Name name, int type, int dclass, long ttl, Name singleName,
30
super(name, type, dclass, ttl);
31
this.singleName = checkName(description, singleName);
35
rrFromWire(DNSInput in) throws IOException {
36
singleName = new Name(in);
40
rdataFromString(Tokenizer st, Name origin) throws IOException {
41
singleName = st.getName(origin);
46
return singleName.toString();
55
rrToWire(DNSOutput out, Compression c, boolean canonical) {
56
singleName.toWire(out, null, canonical);