Class RadiotapDataFhss
java.lang.Object
org.pcap4j.packet.RadiotapDataFhss
- All Implemented Interfaces:
Serializable, RadiotapPacket.RadiotapData
Radiotap FHSS field. The hop set and pattern for frequency-hopping radios.
- Since:
- pcap4j 1.6.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteprivate final byteprivate static final intprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRadiotapDataFhss(byte[] rawData, int offset, int length) privateRadiotapDataFhss(RadiotapDataFhss.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyteintbyteintbyte[]inthashCode()intlength()static RadiotapDataFhssnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
LENGTH
private static final int LENGTH- See Also:
-
hopSet
private final byte hopSet -
hopPattern
private final byte hopPattern
-
-
Constructor Details
-
RadiotapDataFhss
- Throws:
IllegalRawDataException
-
RadiotapDataFhss
-
-
Method Details
-
newInstance
public static RadiotapDataFhss 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 RadiotapFhss object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getHopSet
public byte getHopSet()- Returns:
- hopSet
-
getHopSetAsInt
public int getHopSetAsInt()- Returns:
- hopSet
-
getHopPattern
public byte getHopPattern()- Returns:
- hopPattern
-
getHopPatternAsInt
public int getHopPatternAsInt()- Returns:
- hopPattern
-
length
public int length()- Specified by:
lengthin interfaceRadiotapPacket.RadiotapData- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceRadiotapPacket.RadiotapData- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
toString
- Specified by:
toStringin interfaceRadiotapPacket.RadiotapData- Parameters:
indent- indent- Returns:
- String representation of this object.
-
hashCode
-
equals
-