Constructor and Description |
---|
HINFORecord() |
HINFORecord(Name name,
int dclass,
long ttl,
java.lang.String cpu,
java.lang.String os)
Creates an HINFO Record from the given data
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCPU()
Returns the host's CPU
|
java.lang.String |
getOS()
Returns the host's OS
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.String |
rrToString()
Converts to a string
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
byteArrayFromString, byteArrayToString, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
HINFORecord()
public HINFORecord(Name name, int dclass, long ttl, java.lang.String cpu, java.lang.String os)
cpu
- A string describing the host's CPUos
- A string describing the host's OSjava.lang.IllegalArgumentException
- One of the strings has invalid escapesprotected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
public java.lang.String getCPU()
public java.lang.String getOS()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record
protected java.lang.String rrToString()
rrToString
in class Record