Package org.pcap4j.packet
Class IpV6Pad1Option
- java.lang.Object
-
- org.pcap4j.packet.IpV6Pad1Option
-
- All Implemented Interfaces:
java.io.Serializable
,IpV6ExtOptionsPacket.IpV6Option
public final class IpV6Pad1Option extends java.lang.Object implements IpV6ExtOptionsPacket.IpV6Option
- Since:
- pcap4j 0.9.10
- Author:
- Kaito Yamada
- See Also:
- Serialized Form
-
-
Method Summary
Modifier and Type Method Description static IpV6Pad1Option
getInstance()
byte[]
getRawData()
IpV6OptionType
getType()
int
length()
static IpV6Pad1Option
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
-
-
-
Method Detail
-
getInstance
public static IpV6Pad1Option 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
public IpV6OptionType getType()
- Specified by:
getType
in interfaceIpV6ExtOptionsPacket.IpV6Option
- Returns:
- type
-
length
public int length()
- Specified by:
length
in interfaceIpV6ExtOptionsPacket.IpV6Option
- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in interfaceIpV6ExtOptionsPacket.IpV6Option
- Returns:
- raw data
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-