GenericEDNSOption (dnsjava documentation)
Date: 2013-04-10

org.xbill.DNS

## Class GenericEDNSOption

- java.lang.Object
- - org.xbill.DNS.EDNSOption
  - - org.xbill.DNS.GenericEDNSOption

- Direct Known Subclasses:
    NSIDOption

      public class GenericEDNSOption
      extends EDNSOption

  An EDNSOption with no internal structure.
  Author:
    Ming Zhou <mizhou@bnivideo.com>, Beaumaris Networks, Brian Wellington

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.xbill.DNS.EDNSOption

      `EDNSOption.Code`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GenericEDNSOption(int code, byte[] data)` Construct a generic EDNS option.

  - ### Method Summary

    - ### Methods inherited from class org.xbill.DNS.EDNSOption

      `equals, fromWire, getCode, hashCode, toString, toWire`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### GenericEDNSOption

          public GenericEDNSOption(int code,
                           byte[] data)

      Construct a generic EDNS option.
      Parameters:
        `data` - The contents of the option.