java.lang.Object
org.pcap4j.packet.Dot11InformationElement
org.pcap4j.packet.Dot11SupportedOperatingClassesElement
- All Implemented Interfaces:
Serializable
IEEE802.11 Supported Operating Classes element
1 1 1 1-252
+-----------------------+-----------------------+-----------------------+-------------------
| Element ID | Length |Current Operating Class| Operating Classes
+-----------------------+-----------------------+-----------------------+-------------------
Element ID: 59
The Supported Operating Classes element is used by a STA to advertise the operating classes that
it is capable of operating with in this country. The value of the Length field of the Supported
Operating Classes element is between 2 and 253. The Current Operating Class octet indicates the
operating class in use for transmission and reception. The Operating Classes field lists in
ascending order all operating classes that the STA is capable of operating with in this country.- Since:
- pcap4j 1.7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteprivate final byte[]private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDot11SupportedOperatingClassesElement(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyteintbyte[]byte[]inthashCode()intlength()newInstance(byte[] rawData, int offset, int length) A static factory method.toString()Methods inherited from class org.pcap4j.packet.Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
currentOperatingClass
private final byte currentOperatingClass -
operatingClasses
private final byte[] operatingClasses
-
-
Constructor Details
-
Dot11SupportedOperatingClassesElement
private Dot11SupportedOperatingClassesElement(byte[] rawData, int offset, int length) throws IllegalRawDataException - Parameters:
rawData- rawDataoffset- offsetlength- length- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
Dot11SupportedOperatingClassesElement
private Dot11SupportedOperatingClassesElement(Dot11SupportedOperatingClassesElement.Builder builder) - Parameters:
builder- builder
-
-
Method Details
-
newInstance
public static Dot11SupportedOperatingClassesElement 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 Dot11SupportedOperatingClassesElement object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getCurrentOperatingClass
public byte getCurrentOperatingClass()- Returns:
- currentOperatingClass
-
getCurrentOperatingClassAsInt
public int getCurrentOperatingClassAsInt()- Returns:
- currentOperatingClass
-
getOperatingClasses
public byte[] getOperatingClasses()- Returns:
- operatingClasses
-
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
- Parameters:
indent- indent- Returns:
- the string representation of this object.
-