Class UnknownIpV6Option
java.lang.Object
org.pcap4j.packet.UnknownIpV6Option
- All Implemented Interfaces:
Serializable, IpV6ExtOptionsPacket.IpV6Option
- 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 IpV6OptionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnknownIpV6Option(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getData()byteintbyte[]getType()inthashCode()intlength()static UnknownIpV6OptionnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
dataLen
private final byte dataLen -
data
private final byte[] data
-
-
Constructor Details
-
UnknownIpV6Option
- Throws:
IllegalRawDataException
-
UnknownIpV6Option
-
-
Method Details
-
newInstance
public static UnknownIpV6Option 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 UnknownIpV6Option object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceIpV6ExtOptionsPacket.IpV6Option- Returns:
- type
-
getDataLen
public byte getDataLen()- Returns:
- dataLen
-
getDataLenAsInt
public int getDataLenAsInt()- Returns:
- dataLen
-
getData
public byte[] getData()- Returns:
- data
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV6ExtOptionsPacket.IpV6Option- Returns:
- raw data
-
length
public int length()- Specified by:
lengthin interfaceIpV6ExtOptionsPacket.IpV6Option- Returns:
- length
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
-