public final class Dot11VendorSpecificElement extends Dot11InformationElement
1 1 variable variable +------------+------------+------------+------------------------ | Element ID | Length |Organization|Vendor-specific content | | |Identifier | +------------+------------+------------+------------------------ Element ID: 221The 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.
Modifier and Type | Class and Description |
---|---|
static class |
Dot11VendorSpecificElement.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Dot11VendorSpecificElement.Builder |
getBuilder() |
byte[] |
getInformation() |
byte[] |
getRawData() |
int |
hashCode() |
int |
length() |
static Dot11VendorSpecificElement |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
String |
toString(String indent) |
getElementId, getLength, getLengthAsInt
public static Dot11VendorSpecificElement newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public byte[] getInformation()
public int length()
length
in class Dot11InformationElement
public byte[] getRawData()
getRawData
in class Dot11InformationElement
public Dot11VendorSpecificElement.Builder getBuilder()
public int hashCode()
hashCode
in class Dot11InformationElement
public boolean equals(Object obj)
equals
in class Dot11InformationElement
Copyright © 2011–2017 Pcap4J.org. All rights reserved.