Package org.xbill.DNS
Class HINFORecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.HINFORecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Host Information - describes the CPU and OS of a host
- Author:
- Brian Wellington
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionHINFORecord(Name name, int dclass, long ttl, String cpu, String os) Creates an HINFO Record from the given data -
Method Summary
Modifier and TypeMethodDescriptiongetCPU()Returns the host's CPUgetOS()Returns the host's OSprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts to a stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.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, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
HINFORecord
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:
IllegalArgumentException- One of the strings has invalid escapes
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
getCPU
Returns the host's CPU -
getOS
Returns the host's OS -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden. -
rrToString
Converts to a string- Specified by:
rrToStringin classRecord
-