org.xbill.DNS
Class HINFORecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.HINFORecord
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class HINFORecord
- extends Record
Host Information - describes the CPU and OS of a host
- Author:
- Brian Wellington
- See Also:
- Serialized Form
Constructor Summary |
HINFORecord(Name name,
int dclass,
long ttl,
java.lang.String cpu,
java.lang.String os)
Creates an HINFO Record from the given data |
Method Summary |
java.lang.String |
getCPU()
Returns the host's CPU |
java.lang.String |
getOS()
Returns the host's OS |
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, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
HINFORecord
public HINFORecord(Name name,
int dclass,
long ttl,
java.lang.String cpu,
java.lang.String os)
- Creates an HINFO Record from the given data
- Parameters:
cpu
- A string describing the host's CPUos
- A string describing the host's OS
- Throws:
java.lang.IllegalArgumentException
- One of the strings has invalid escapes
getCPU
public java.lang.String getCPU()
- Returns the host's CPU
getOS
public java.lang.String getOS()
- Returns the host's OS