Class RadiotapPresentBitmask

java.lang.Object
org.pcap4j.packet.RadiotapPresentBitmask
All Implemented Interfaces:
Serializable

public final class RadiotapPresentBitmask extends Object implements Serializable
The present field of Radiotap header. Vendor namespaces are not supported yet.
Since:
pcap4j 1.6.5
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • namespace

      private final String namespace
    • bitNumbers

      private final List<RadiotapPresentBitNumber> bitNumbers
    • radiotapNamespaceNext

      private final boolean radiotapNamespaceNext
    • vendorNamespaceNext

      private final boolean vendorNamespaceNext
    • anotherBitmapFollows

      private final boolean anotherBitmapFollows
  • Constructor Details

  • Method Details

    • newInstance

      public static RadiotapPresentBitmask newInstance(byte[] rawData, int offset, int length, int bitNumOffset) throws IllegalRawDataException
      A static factory method. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
      length - length
      bitNumOffset - bitNumOffset
      Returns:
      a new RadiotapPresentBitmask object.
      Throws:
      IllegalRawDataException - if parsing the raw data fails.
    • newInstance

      public static RadiotapPresentBitmask newInstance(byte[] rawData, int offset, int length, int bitNumOffset, String namespace) throws IllegalRawDataException
      A static factory method. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
      length - length
      bitNumOffset - bitNumOffset
      namespace - namespace
      Returns:
      a new RadiotapPresentBitmask object.
      Throws:
      IllegalRawDataException - if parsing the raw data fails.
    • getNamespace

      public String getNamespace()
      Returns:
      namespace
    • getBitNumbers

      public ArrayList<RadiotapPresentBitNumber> getBitNumbers()
      Returns:
      bitNumbers
    • isRadiotapNamespaceNext

      public boolean isRadiotapNamespaceNext()
      Returns:
      radiotapNamespaceNext
    • isVendorNamespaceNext

      public boolean isVendorNamespaceNext()
      Returns:
      vendorNamespaceNext
    • isAnotherBitmapFollows

      public boolean isAnotherBitmapFollows()
      Returns:
      anotherBitmapFollows
    • getBitmask

      public byte[] getBitmask()
      Returns:
      the bitmask
    • length

      public int length()
      Returns:
      length of this data
    • getRawData

      public byte[] getRawData()
      Returns:
      the raw data
    • getBuilder

      public RadiotapPresentBitmask.Builder getBuilder()
      Returns:
      a new Builder object populated with this object's fields.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String indent)
      Parameters:
      indent - indent
      Returns:
      String representation of this object.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object