java.lang.Object
org.pcap4j.packet.RadiotapPresentBitmask
- All Implemented Interfaces:
Serializable
The present field of Radiotap header. Vendor namespaces are not supported yet.
- Since:
- pcap4j 1.6.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final List<RadiotapPresentBitNumber> private final Stringprivate final booleanprivate static final longprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRadiotapPresentBitmask(byte[] rawData, int offset, int length, int bitNumOffset, String namespace) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]byte[]inthashCode()booleanbooleanbooleanintlength()static RadiotapPresentBitmasknewInstance(byte[] rawData, int offset, int length, int bitNumOffset) A static factory method.static RadiotapPresentBitmasknewInstance(byte[] rawData, int offset, int length, int bitNumOffset, String namespace) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
namespace
-
bitNumbers
-
radiotapNamespaceNext
private final boolean radiotapNamespaceNext -
vendorNamespaceNext
private final boolean vendorNamespaceNext -
anotherBitmapFollows
private final boolean anotherBitmapFollows
-
-
Constructor Details
-
RadiotapPresentBitmask
private RadiotapPresentBitmask(byte[] rawData, int offset, int length, int bitNumOffset, String namespace) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
RadiotapPresentBitmask
-
-
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 byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- lengthbitNumOffset- 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 byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- lengthbitNumOffset- bitNumOffsetnamespace- namespace- Returns:
- a new RadiotapPresentBitmask object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getNamespace
- Returns:
- namespace
-
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
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
toString
- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode() -
equals
-