1 // Copyright (c) 2004 Brian Wellington (bwelling@xbill.org)
2
3 package org.xbill.DNS;
4
5 /**
6 * Implements common functionality for the many record types whose format
7 * is a single compressed name.
8 *
9 * @author Brian Wellington
10 */
11
12 abstract class SingleCompressedNameBase extends SingleNameBase {
13
14 private static final long serialVersionUID = -236435396815460677L;
15
16 protected
SingleCompressedNameBase()17 SingleCompressedNameBase() {}
18
19 protected
SingleCompressedNameBase(Name name, int type, int dclass, long ttl, Name singleName, String description)20 SingleCompressedNameBase(Name name, int type, int dclass, long ttl,
21 Name singleName, String description)
22 {
23 super(name, type, dclass, ttl, singleName, description);
24 }
25
26 void
rrToWire(DNSOutput out, Compression c, boolean canonical)27 rrToWire(DNSOutput out, Compression c, boolean canonical) {
28 singleName.toWire(out, c, canonical);
29 }
30
31 }
32