Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 2004 Brian Wellington (bwelling (at) 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
     17 SingleCompressedNameBase() {}
     18 
     19 protected
     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
     27 rrToWire(DNSOutput out, Compression c, boolean canonical) {
     28 	singleName.toWire(out, c, canonical);
     29 }
     30 
     31 }
     32