- 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.SerializableIEEE802.11 Information element1 1 variable +----------+----------+------------- |Element ID| Length | information +----------+----------+-------------- Since:
- pcap4j 1.7.0
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDot11InformationElement.Builder
-
Field Summary
Fields Modifier and Type Field Description private Dot11InformationElementIdelementIdprivate bytelengthprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedDot11InformationElement(byte[] rawData, int offset, int length, Dot11InformationElementId id)protectedDot11InformationElement(Dot11InformationElement.Builder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Dot11InformationElementIdgetElementId()bytegetLength()intgetLengthAsInt()abstract byte[]getRawData()inthashCode()abstract intlength()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
elementId
private final Dot11InformationElementId elementId
-
length
private final byte 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-