Package org.xbill.DNS

Class HINFORecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.HINFORecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class HINFORecord extends Record
Host Information - describes the CPU and OS of a host
Author:
Brian Wellington
See Also:
  • Constructor Details

    • HINFORecord

      public HINFORecord(Name name, int dclass, long ttl, String cpu, String os)
      Creates an HINFO Record from the given data
      Parameters:
      cpu - A string describing the host's CPU
      os - A string describing the host's OS
      Throws:
      IllegalArgumentException - One of the strings has invalid escapes
  • Method Details

    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • getCPU

      public String getCPU()
      Returns the host's CPU
    • getOS

      public String getOS()
      Returns the host's OS
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record
    • rrToString

      protected String rrToString()
      Converts to a string
      Specified by:
      rrToString in class Record