- java.lang.Object
-
- org.pcap4j.packet.Dot11FrameControl
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot11FrameControl extends java.lang.Object implements java.io.SerializableFrame control field of an IEEE802.11 frame.0 1 2 3 4 5 6 7 +----------+----------+----------+----------+----------+----------+----------+----------+ | Protocol | Type | Subtype | | Version | | | +----------+----------+----------+----------+----------+----------+----------+----------+ | To DS | From DS |More | Retry |Power | More |Protected | Order | | | |Fragments | |Management| Data |Frame | | +----------+----------+----------+----------+----------+----------+----------+----------+- Since:
- pcap4j 1.7.0
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDot11FrameControl.Builderstatic classDot11FrameControl.ProtocolVersionProtocol version of IEEE802.11 frame
-
Field Summary
Fields Modifier and Type Field Description private booleanfromDsprivate booleanmoreDataprivate booleanmoreFragmentsprivate booleanorderprivate booleanpowerManagementprivate booleanprotectedFrameprivate Dot11FrameControl.ProtocolVersionprotocolVersionprivate booleanretryprivate static longserialVersionUIDprivate booleantoDsprivate Dot11FrameTypetype
-
Constructor Summary
Constructors Modifier Constructor Description privateDot11FrameControl(byte[] rawData, int offset, int length)privateDot11FrameControl(Dot11FrameControl.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Dot11FrameControl.BuildergetBuilder()Dot11FrameControl.ProtocolVersiongetProtocolVersion()byte[]getRawData()Dot11FrameTypegetType()inthashCode()booleanisFromDs()booleanisMoreData()booleanisMoreFragments()booleanisOrder()booleanisPowerManagement()booleanisProtectedFrame()booleanisRetry()booleanisToDs()intlength()static Dot11FrameControlnewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()java.lang.StringtoString(java.lang.String indent)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
protocolVersion
private final Dot11FrameControl.ProtocolVersion protocolVersion
-
type
private final Dot11FrameType type
-
toDs
private final boolean toDs
-
fromDs
private final boolean fromDs
-
moreFragments
private final boolean moreFragments
-
retry
private final boolean retry
-
powerManagement
private final boolean powerManagement
-
moreData
private final boolean moreData
-
protectedFrame
private final boolean protectedFrame
-
order
private final boolean order
-
-
Constructor Detail
-
Dot11FrameControl
private Dot11FrameControl(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
Dot11FrameControl
private Dot11FrameControl(Dot11FrameControl.Builder builder)
-
-
Method Detail
-
newInstance
public static Dot11FrameControl 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 Dot11FrameControl object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getProtocolVersion
public Dot11FrameControl.ProtocolVersion getProtocolVersion()
- Returns:
- protocolVersion
-
getType
public Dot11FrameType getType()
- Returns:
- type
-
isToDs
public boolean isToDs()
- Returns:
- toDs
-
isFromDs
public boolean isFromDs()
- Returns:
- fromDs
-
isMoreFragments
public boolean isMoreFragments()
- Returns:
- moreFragments
-
isRetry
public boolean isRetry()
- Returns:
- retry
-
isPowerManagement
public boolean isPowerManagement()
- Returns:
- powerManagement
-
isMoreData
public boolean isMoreData()
- Returns:
- moreData
-
isProtectedFrame
public boolean isProtectedFrame()
- Returns:
- protectedFrame
-
isOrder
public boolean isOrder()
- Returns:
- order
-
getBuilder
public Dot11FrameControl.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
getRawData
public byte[] getRawData()
- Returns:
- the raw data.
-
length
public int length()
- Returns:
- length
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-