- 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
- See Also:
- Radiotap, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRadiotapDataRxFlags.Builder
-
Field Summary
Fields Modifier and Type Field Description private booleanbadPlcpCrcprivate booleaneighthLsbprivate booleaneleventhLsbprivate booleanfifteenthLsbprivate booleanfifthLsbprivate booleanfourteenthLsbprivate booleanfourthLsbprivate static intLENGTHprivate booleanlsbprivate booleanninthLsbprivate static longserialVersionUIDprivate booleanseventhLsbprivate booleansixteenthLsbprivate booleansixthLsbprivate booleantenthLsbprivate booleanthirdLsbprivate booleanthirteenthLsbprivate booleantwelvethLsb
-
Constructor Summary
Constructors Modifier Constructor Description privateRadiotapDataRxFlags(byte[] rawData, int offset, int length)privateRadiotapDataRxFlags(RadiotapDataRxFlags.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)RadiotapDataRxFlags.BuildergetBuilder()booleangetEighthLsb()booleangetEleventhLsb()booleangetFifteenthLsb()booleangetFifthLsb()booleangetFourteenthLsb()booleangetFourthLsb()booleangetLsb()booleangetNinthLsb()byte[]getRawData()booleangetSeventhLsb()booleangetSixteenthLsb()booleangetSixthLsb()booleangetTenthLsb()booleangetThirdLsb()booleangetThirteenthLsb()booleangetTwelvethLsb()inthashCode()booleanisBadPlcpCrc()intlength()static RadiotapDataRxFlagsnewInstance(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
-
lsb
private final boolean lsb
-
badPlcpCrc
private final boolean badPlcpCrc
-
thirdLsb
private final boolean thirdLsb
-
fourthLsb
private final boolean fourthLsb
-
fifthLsb
private final boolean fifthLsb
-
sixthLsb
private final boolean sixthLsb
-
seventhLsb
private final boolean seventhLsb
-
eighthLsb
private final boolean eighthLsb
-
ninthLsb
private final boolean ninthLsb
-
tenthLsb
private final boolean tenthLsb
-
eleventhLsb
private final boolean eleventhLsb
-
twelvethLsb
private final boolean twelvethLsb
-
thirteenthLsb
private final boolean thirteenthLsb
-
fourteenthLsb
private final boolean fourteenthLsb
-
fifteenthLsb
private final boolean fifteenthLsb
-
sixteenthLsb
private final boolean sixteenthLsb
-
-
Constructor Detail
-
RadiotapDataRxFlags
private RadiotapDataRxFlags(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
RadiotapDataRxFlags
private RadiotapDataRxFlags(RadiotapDataRxFlags.Builder builder)
-
-
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:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain 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:
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
-
-