1// Copyright (c) 2004 Brian Wellington (bwelling@xbill.org) 2 3package 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 12abstract class SingleCompressedNameBase extends SingleNameBase { 13 14private static final long serialVersionUID = -236435396815460677L; 15 16protected 17SingleCompressedNameBase() {} 18 19protected 20SingleCompressedNameBase(Name name, int type, int dclass, long ttl, 21 Name singleName, String description) 22{ 23 super(name, type, dclass, ttl, singleName, description); 24} 25 26void 27rrToWire(DNSOutput out, Compression c, boolean canonical) { 28 singleName.toWire(out, c, canonical); 29} 30 31} 32