Class RadiotapPresentBitmask

  • All Implemented Interfaces:
    java.io.Serializable

    public final class RadiotapPresentBitmask
    extends java.lang.Object
    implements java.io.Serializable
    The present field of Radiotap header. Vendor namespaces are not supported yet.
    Since:
    pcap4j 1.6.5
    Author:
    Kaito Yamada
    See Also:
    Radiotap, Serialized Form
    • Method Detail

      • newInstance

        public static RadiotapPresentBitmask newInstance​(byte[] rawData,
                                                         int offset,
                                                         int length,
                                                         int bitNumOffset,
                                                         java.lang.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 java.lang.String getNamespace()
        Returns:
        namespace
      • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object