home *** CD-ROM | disk | FTP | other *** search
- package org.xbill.DNS;
-
- import java.io.IOException;
-
- abstract class SingleNameBase extends Record {
- protected Name singleName;
-
- protected SingleNameBase() {
- }
-
- protected SingleNameBase(Name name, int type, int dclass, long ttl) {
- super(name, type, dclass, ttl);
- }
-
- protected SingleNameBase(Name name, int type, int dclass, long ttl, Name singleName, String description) {
- super(name, type, dclass, ttl);
- this.singleName = Record.checkName(description, singleName);
- }
-
- void rrFromWire(DNSInput in) throws IOException {
- this.singleName = new Name(in);
- }
-
- void rdataFromString(Tokenizer st, Name origin) throws IOException {
- this.singleName = st.getName(origin);
- }
-
- String rrToString() {
- return this.singleName.toString();
- }
-
- protected Name getSingleName() {
- return this.singleName;
- }
-
- void rrToWire(DNSOutput out, Compression c, boolean canonical) {
- this.singleName.toWire(out, (Compression)null, canonical);
- }
- }
-