Package org.pcap4j.packet
Class Dot11InformationElement
- java.lang.Object
-
- org.pcap4j.packet.Dot11InformationElement
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
Dot112040BssCoexistenceElement
,Dot11AbstractSupportedRatesElement
,Dot11ChannelUsageElement
,Dot11DsssParameterSetElement
,Dot11ExtendedCapabilitiesElement
,Dot11HTCapabilitiesElement
,Dot11InterworkingElement
,Dot11MeshIdElement
,Dot11RequestElement
,Dot11SsidElement
,Dot11SsidListElement
,Dot11SupportedOperatingClassesElement
,Dot11VendorSpecificElement
public abstract class Dot11InformationElement extends java.lang.Object implements java.io.Serializable
IEEE802.11 Information element1 1 variable +----------+----------+------------- |Element ID| Length | information +----------+----------+-------------
- Since:
- pcap4j 1.7.0
- Author:
- Kaito Yamada
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dot11InformationElement.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
Dot11InformationElement(byte[] rawData, int offset, int length, Dot11InformationElementId id)
protected
Dot11InformationElement(Dot11InformationElement.Builder builder)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Dot11InformationElementId
getElementId()
byte
getLength()
int
getLengthAsInt()
abstract byte[]
getRawData()
int
hashCode()
abstract int
length()
-
-
-
Constructor Detail
-
Dot11InformationElement
protected Dot11InformationElement(byte[] rawData, int offset, int length, Dot11InformationElementId id) throws IllegalRawDataException
- Parameters:
rawData
- rawDataoffset
- offsetlength
- lengthid
- element ID- Throws:
IllegalRawDataException
- if parsing the raw data fails.
-
Dot11InformationElement
protected Dot11InformationElement(Dot11InformationElement.Builder builder)
- Parameters:
builder
- builder
-
-
Method Detail
-
getElementId
public Dot11InformationElementId getElementId()
- Returns:
- the element ID
-
getLength
public byte getLength()
- Returns:
- the value of the length field.
-
getLengthAsInt
public int getLengthAsInt()
- Returns:
- the value of the length field.
-
length
public abstract int length()
- Returns:
- the length
-
getRawData
public abstract byte[] getRawData()
- Returns:
- the raw data.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-