org.xbill.DNS
Class NS_CNAME_PTRRecord

java.lang.Object
  extended byorg.xbill.DNS.Record
      extended byorg.xbill.DNS.NS_CNAME_PTRRecord
All Implemented Interfaces:
Cloneable, Comparable
Direct Known Subclasses:
CNAMERecord, DNAMERecord, NSRecord, PTRRecord

public abstract class NS_CNAME_PTRRecord
extends Record

Implements NS, CNAME, PTR, and DNAME records, which have identical formats

Author:
Brian Wellington

Field Summary
protected  Name target
           
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
protected NS_CNAME_PTRRecord()
           
protected NS_CNAME_PTRRecord(Name name, int type, int dclass, long ttl)
           
  NS_CNAME_PTRRecord(Name name, int type, int dclass, long ttl, Name target)
           
 
Method Summary
 Name getTarget()
          Gets the target of the NS, CNAME, or PTR Record
protected static Record rdataFromString(NS_CNAME_PTRRecord rec, Tokenizer st, Name origin)
           
 String rdataToString()
          Converts the NS, CNAME, or PTR Record to a String
protected static Record rrFromWire(NS_CNAME_PTRRecord rec, DataByteInputStream in)
           
 
Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToWireCanonical, remainingStrings, toString, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

target

protected Name target
Constructor Detail

NS_CNAME_PTRRecord

protected NS_CNAME_PTRRecord()

NS_CNAME_PTRRecord

protected NS_CNAME_PTRRecord(Name name,
                             int type,
                             int dclass,
                             long ttl)

NS_CNAME_PTRRecord

public NS_CNAME_PTRRecord(Name name,
                          int type,
                          int dclass,
                          long ttl,
                          Name target)
Method Detail

rrFromWire

protected static Record rrFromWire(NS_CNAME_PTRRecord rec,
                                   DataByteInputStream in)
                            throws IOException
Throws:
IOException

rdataFromString

protected static Record rdataFromString(NS_CNAME_PTRRecord rec,
                                        Tokenizer st,
                                        Name origin)
                                 throws IOException
Throws:
IOException

rdataToString

public String rdataToString()
Converts the NS, CNAME, or PTR Record to a String

Specified by:
rdataToString in class Record

getTarget

public Name getTarget()
Gets the target of the NS, CNAME, or PTR Record