aboutsummaryrefslogtreecommitdiff
path: root/src/org/xbill/DNS/SingleCompressedNameBase.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/xbill/DNS/SingleCompressedNameBase.java')
-rw-r--r--src/org/xbill/DNS/SingleCompressedNameBase.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/org/xbill/DNS/SingleCompressedNameBase.java b/src/org/xbill/DNS/SingleCompressedNameBase.java
new file mode 100644
index 0000000..790ca1f
--- /dev/null
+++ b/src/org/xbill/DNS/SingleCompressedNameBase.java
@@ -0,0 +1,31 @@
+// Copyright (c) 2004 Brian Wellington (bwelling@xbill.org)
+
+package org.xbill.DNS;
+
+/**
+ * Implements common functionality for the many record types whose format
+ * is a single compressed name.
+ *
+ * @author Brian Wellington
+ */
+
+abstract class SingleCompressedNameBase extends SingleNameBase {
+
+private static final long serialVersionUID = -236435396815460677L;
+
+protected
+SingleCompressedNameBase() {}
+
+protected
+SingleCompressedNameBase(Name name, int type, int dclass, long ttl,
+ Name singleName, String description)
+{
+ super(name, type, dclass, ttl, singleName, description);
+}
+
+void
+rrToWire(DNSOutput out, Compression c, boolean canonical) {
+ singleName.toWire(out, c, canonical);
+}
+
+}