Class UnknownIpV4Option
java.lang.Object
org.pcap4j.packet.UnknownIpV4Option
- All Implemented Interfaces:
Serializable, IpV4Packet.IpV4Option
- Since:
- pcap4j 0.9.11
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final byteprivate static final longprivate final IpV4OptionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnknownIpV4Option(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getData()byteintbyte[]getType()inthashCode()intlength()static UnknownIpV4OptionnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
length
private final byte length -
data
private final byte[] data
-
-
Constructor Details
-
UnknownIpV4Option
- Throws:
IllegalRawDataException
-
UnknownIpV4Option
-
-
Method Details
-
newInstance
public static UnknownIpV4Option 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 UnknownIpV4Option object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceIpV4Packet.IpV4Option- Returns:
- type
-
getLength
public byte getLength()- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()- Returns:
- length
-
getData
public byte[] getData()- Returns:
- data
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV4Packet.IpV4Option- Returns:
- raw data
-
length
public int length()- Specified by:
lengthin interfaceIpV4Packet.IpV4Option- Returns:
- length
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
-