1 // Copyright (c) 1999-2004 Brian Wellington (bwelling (at) xbill.org) 2 3 package org.xbill.DNS; 4 5 import java.io.*; 6 7 /** 8 * A class implementing Records with no data; that is, records used in 9 * the question section of messages and meta-records in dynamic update. 10 * 11 * @author Brian Wellington 12 */ 13 14 class EmptyRecord extends Record { 15 16 private static final long serialVersionUID = 3601852050646429582L; 17 18 EmptyRecord() {} 19 20 Record 21 getObject() { 22 return new EmptyRecord(); 23 } 24 25 void 26 rrFromWire(DNSInput in) throws IOException { 27 } 28 29 void 30 rdataFromString(Tokenizer st, Name origin) throws IOException { 31 } 32 33 String 34 rrToString() { 35 return ""; 36 } 37 38 void 39 rrToWire(DNSOutput out, Compression c, boolean canonical) { 40 } 41 42 } 43