Package org.xbill.DNS

Class GenericEDNSOption

java.lang.Object
org.xbill.DNS.EDNSOption
org.xbill.DNS.GenericEDNSOption
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NSIDOption

public class GenericEDNSOption extends EDNSOption
An EDNSOption with no internal structure.
See Also:
  • Field Details

    • data

      private byte[] data
  • Constructor Details

    • GenericEDNSOption

      GenericEDNSOption(int code)
    • GenericEDNSOption

      public GenericEDNSOption(int code, byte[] data)
      Construct a generic EDNS option.
      Parameters:
      data - The contents of the option.
  • Method Details

    • optionFromWire

      void optionFromWire(DNSInput in)
      Description copied from class: EDNSOption
      Converts the wire format of an EDNS Option (the option data only) into the type-specific format.
      Specified by:
      optionFromWire in class EDNSOption
      Parameters:
      in - The input Stream.
    • optionToWire

      void optionToWire(DNSOutput out)
      Description copied from class: EDNSOption
      Converts an EDNS Option (the type-specific option data only) into wire format.
      Specified by:
      optionToWire in class EDNSOption
      Parameters:
      out - The output stream.
    • optionToString

      String optionToString()
      Specified by:
      optionToString in class EDNSOption