Class Dot11VendorSpecificElement
java.lang.Object
org.pcap4j.packet.Dot11InformationElement
org.pcap4j.packet.Dot11VendorSpecificElement
- All Implemented Interfaces:
Serializable
IEEE802.11 Vendor Specific element
1 1 variable variable
+------------+------------+------------+------------------------
| Element ID | Length |Organization|Vendor-specific content
| | |Identifier |
+------------+------------+------------+------------------------
Element ID: 221
The Vendor Specific element is used to carry information not defined in this standard within a
single defined format, so that reserved element IDs are not usurped for nonstandard purposes and
so that interoperability is more easily achieved in the presence of nonstandard information. The
element requires that the first 3 or more octets of the Information field identify the entity
that has defined the content of the particular Vendor Specific element.- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11VendorSpecificElement(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]byte[]inthashCode()intlength()static Dot11VendorSpecificElementnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()Methods inherited from class Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
information
private final byte[] information
-
-
Constructor Details
-
Dot11VendorSpecificElement
private Dot11VendorSpecificElement(byte[] rawData, int offset, int length) throws IllegalRawDataException - Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11VendorSpecificElement
- Parameters:
builder- builder
-
-
Method Details
-
newInstance
public static Dot11VendorSpecificElement newInstance(byte[] rawData, int offset, int length) 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- length- Returns:
- a new Dot11VendorSpecificElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getInformation
public byte[] getInformation()- Returns:
- information
-
length
public int length()- Specified by:
lengthin classDot11InformationElement- Returns:
- the length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain classDot11InformationElement- Returns:
- the raw data.
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
hashCode
public int hashCode()- Overrides:
hashCodein classDot11InformationElement
-
equals
- Overrides:
equalsin classDot11InformationElement
-
toString
-
toString
-