Package org.pcap4j.packet
Class RadiotapDataRxFlags
- java.lang.Object
-
- org.pcap4j.packet.RadiotapDataRxFlags
-
- All Implemented Interfaces:
java.io.Serializable
,RadiotapPacket.RadiotapData
public final class RadiotapDataRxFlags extends java.lang.Object implements RadiotapPacket.RadiotapData
Radiotap RX flags field. Properties of received frames.- Since:
- pcap4j 1.6.5
- Author:
- Kaito Yamada
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RadiotapDataRxFlags.Builder
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
RadiotapDataRxFlags.Builder
getBuilder()
boolean
getEighthLsb()
boolean
getEleventhLsb()
boolean
getFifteenthLsb()
boolean
getFifthLsb()
boolean
getFourteenthLsb()
boolean
getFourthLsb()
boolean
getLsb()
boolean
getNinthLsb()
byte[]
getRawData()
boolean
getSeventhLsb()
boolean
getSixteenthLsb()
boolean
getSixthLsb()
boolean
getTenthLsb()
boolean
getThirdLsb()
boolean
getThirteenthLsb()
boolean
getTwelvethLsb()
int
hashCode()
boolean
isBadPlcpCrc()
int
length()
static RadiotapDataRxFlags
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
java.lang.String
toString(java.lang.String indent)
-
-
-
Method Detail
-
newInstance
public static RadiotapDataRxFlags 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 RadiotapRxFlags object.
- Throws:
IllegalRawDataException
- if parsing the raw data fails.
-
getLsb
public boolean getLsb()
- Returns:
- true if the LSB is set to 1; otherwise false.
-
isBadPlcpCrc
public boolean isBadPlcpCrc()
- Returns:
- badPlcpCrc
-
getThirdLsb
public boolean getThirdLsb()
- Returns:
- true if the third LSB is set to 1; otherwise false.
-
getFourthLsb
public boolean getFourthLsb()
- Returns:
- true if the fourth LSB is set to 1; otherwise false.
-
getFifthLsb
public boolean getFifthLsb()
- Returns:
- true if the fifth LSB is set to 1; otherwise false.
-
getSixthLsb
public boolean getSixthLsb()
- Returns:
- true if the sixth LSB is set to 1; otherwise false.
-
getSeventhLsb
public boolean getSeventhLsb()
- Returns:
- true if the seventh LSB is set to 1; otherwise false.
-
getEighthLsb
public boolean getEighthLsb()
- Returns:
- true if the eighth LSB is set to 1; otherwise false.
-
getNinthLsb
public boolean getNinthLsb()
- Returns:
- true if the ninth LSB is set to 1; otherwise false.
-
getTenthLsb
public boolean getTenthLsb()
- Returns:
- true if the tenth LSB is set to 1; otherwise false.
-
getEleventhLsb
public boolean getEleventhLsb()
- Returns:
- true if the eleventh LSB is set to 1; otherwise false.
-
getTwelvethLsb
public boolean getTwelvethLsb()
- Returns:
- true if the twelveth LSB is set to 1; otherwise false.
-
getThirteenthLsb
public boolean getThirteenthLsb()
- Returns:
- true if the thirteenth LSB is set to 1; otherwise false.
-
getFourteenthLsb
public boolean getFourteenthLsb()
- Returns:
- true if the fourteenth LSB is set to 1; otherwise false.
-
getFifteenthLsb
public boolean getFifteenthLsb()
- Returns:
- true if the fifteenth LSB is set to 1; otherwise false.
-
getSixteenthLsb
public boolean getSixteenthLsb()
- Returns:
- true if the sixteenth LSB is set to 1; otherwise false.
-
length
public int length()
- Specified by:
length
in interfaceRadiotapPacket.RadiotapData
- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in interfaceRadiotapPacket.RadiotapData
- Returns:
- raw data
-
getBuilder
public RadiotapDataRxFlags.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Specified by:
toString
in interfaceRadiotapPacket.RadiotapData
- Parameters:
indent
- indent- Returns:
- String representation of this object.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-