01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: import java.io.*;
06:
07: /**
08: * A class implementing Records with no data; that is, records used in
09: * 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: EmptyRecord() {
17: }
18:
19: Record getObject() {
20: return new EmptyRecord();
21: }
22:
23: void rrFromWire(DNSInput in) throws IOException {
24: }
25:
26: void rdataFromString(Tokenizer st, Name origin) throws IOException {
27: }
28:
29: String rrToString() {
30: return "";
31: }
32:
33: void rrToWire(DNSOutput out, Compression c, boolean canonical) {
34: }
35:
36: }
|