Class IpV6Pad1Option
java.lang.Object
org.pcap4j.packet.IpV6Pad1Option
- All Implemented Interfaces:
Serializable, IpV6ExtOptionsPacket.IpV6Option
- Since:
- pcap4j 0.9.10
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IpV6Pad1Optionprivate static final longprivate static final IpV6OptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IpV6Pad1Optionbyte[]getType()intlength()static IpV6Pad1OptionnewInstance(byte[] rawData, int offset, int length) A static factory method.private ObjecttoString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
type
-
-
Constructor Details
-
IpV6Pad1Option
private IpV6Pad1Option()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of IpV6Pad1Option.
-
newInstance
public static IpV6Pad1Option 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:
- the singleton instance of IpV6Pad1Option.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getType
- Specified by:
getTypein interfaceIpV6ExtOptionsPacket.IpV6Option- Returns:
- type
-
length
public int length()- Specified by:
lengthin interfaceIpV6ExtOptionsPacket.IpV6Option- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV6ExtOptionsPacket.IpV6Option- Returns:
- raw data
-
toString
-
readResolve
- Throws:
ObjectStreamException
-