- java.lang.Object
-
- org.pcap4j.packet.RadiotapDataMcs
-
- All Implemented Interfaces:
java.io.Serializable,RadiotapPacket.RadiotapData
public final class RadiotapDataMcs extends java.lang.Object implements RadiotapPacket.RadiotapData
Radiotap MCS field.- Since:
- pcap4j 1.6.5
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRadiotapDataMcs.Bandwidthstatic classRadiotapDataMcs.Builderstatic classRadiotapDataMcs.HtFormat
-
Field Summary
Fields Modifier and Type Field Description private RadiotapDataMcs.Bandwidthbandwidthprivate booleanbandwidthKnownprivate RadiotapFecTypefecTypeprivate booleanfecTypeKnownprivate booleanguardIntervalKnownprivate RadiotapDataMcs.HtFormathtFormatprivate booleanhtFormatKnownprivate static intLENGTHprivate booleanmcsIndexKnownprivate bytemcsRateIndexprivate booleannessKnownprivate booleannessLsbprivate booleannessMsbprivate bytenumStbcStreamsprivate static longserialVersionUIDprivate booleanshortGuardIntervalprivate booleanstbcKnown
-
Constructor Summary
Constructors Modifier Constructor Description privateRadiotapDataMcs(byte[] rawData, int offset, int length)privateRadiotapDataMcs(RadiotapDataMcs.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)RadiotapDataMcs.BandwidthgetBandwidth()RadiotapDataMcs.BuildergetBuilder()RadiotapFecTypegetFecType()RadiotapDataMcs.HtFormatgetHtFormat()bytegetMcsRateIndex()intgetMcsRateIndexAsInt()booleangetNessLsb()booleangetNessMsb()bytegetNumStbcStreams()intgetNumStbcStreamsAsInt()byte[]getRawData()inthashCode()booleanisBandwidthKnown()booleanisFecTypeKnown()booleanisGuardIntervalKnown()booleanisHtFormatKnown()booleanisMcsIndexKnown()booleanisNessKnown()booleanisShortGuardInterval()booleanisStbcKnown()intlength()static RadiotapDataMcsnewInstance(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
-
LENGTH
private static final int LENGTH
- See Also:
- Constant Field Values
-
bandwidthKnown
private final boolean bandwidthKnown
-
mcsIndexKnown
private final boolean mcsIndexKnown
-
guardIntervalKnown
private final boolean guardIntervalKnown
-
htFormatKnown
private final boolean htFormatKnown
-
fecTypeKnown
private final boolean fecTypeKnown
-
stbcKnown
private final boolean stbcKnown
-
nessKnown
private final boolean nessKnown
-
nessMsb
private final boolean nessMsb
-
bandwidth
private final RadiotapDataMcs.Bandwidth bandwidth
-
shortGuardInterval
private final boolean shortGuardInterval
-
htFormat
private final RadiotapDataMcs.HtFormat htFormat
-
fecType
private final RadiotapFecType fecType
-
numStbcStreams
private final byte numStbcStreams
-
nessLsb
private final boolean nessLsb
-
mcsRateIndex
private final byte mcsRateIndex
-
-
Constructor Detail
-
RadiotapDataMcs
private RadiotapDataMcs(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
RadiotapDataMcs
private RadiotapDataMcs(RadiotapDataMcs.Builder builder)
-
-
Method Detail
-
newInstance
public static RadiotapDataMcs 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 RadiotapMcs object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
isBandwidthKnown
public boolean isBandwidthKnown()
- Returns:
- true if the bandwidth is known; false otherwise.
-
isMcsIndexKnown
public boolean isMcsIndexKnown()
- Returns:
- true if the MCS index is known; false otherwise.
-
isGuardIntervalKnown
public boolean isGuardIntervalKnown()
- Returns:
- true if the guard interval is known; false otherwise.
-
isHtFormatKnown
public boolean isHtFormatKnown()
- Returns:
- true if the HT format is known; false otherwise.
-
isFecTypeKnown
public boolean isFecTypeKnown()
- Returns:
- true if the FEC type is known; false otherwise.
-
isStbcKnown
public boolean isStbcKnown()
- Returns:
- true if the STBC is known; false otherwise.
-
isNessKnown
public boolean isNessKnown()
- Returns:
- true if the Ness is known; false otherwise.
-
getNessMsb
public boolean getNessMsb()
- Returns:
- true if the MSB of Ness is 1; false otherwise.
-
getBandwidth
public RadiotapDataMcs.Bandwidth getBandwidth()
- Returns:
- bandwidth
-
isShortGuardInterval
public boolean isShortGuardInterval()
- Returns:
- true if the guard interval is short; false otherwise.
-
getHtFormat
public RadiotapDataMcs.HtFormat getHtFormat()
- Returns:
- htFormat
-
getFecType
public RadiotapFecType getFecType()
- Returns:
- fecType
-
getNumStbcStreams
public byte getNumStbcStreams()
- Returns:
- numStbcStreams
-
getNumStbcStreamsAsInt
public int getNumStbcStreamsAsInt()
- Returns:
- numStbcStreams
-
getNessLsb
public boolean getNessLsb()
- Returns:
- true if LSB of Ness is 1; false otherwise.
-
getMcsRateIndex
public byte getMcsRateIndex()
- Returns:
- mcsRateIndex
-
getMcsRateIndexAsInt
public int getMcsRateIndexAsInt()
- Returns:
- mcsRateIndex
-
length
public int length()
- Specified by:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceRadiotapPacket.RadiotapData- Returns:
- raw data
-
getBuilder
public RadiotapDataMcs.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
toStringin interfaceRadiotapPacket.RadiotapData- 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
-
-