Package org.pcap4j.packet.factory.statik
Class StaticIpV6OptionFactory
- java.lang.Object
-
- org.pcap4j.packet.factory.statik.StaticIpV6OptionFactory
-
- All Implemented Interfaces:
org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option,org.pcap4j.packet.namednumber.IpV6OptionType>
public final class StaticIpV6OptionFactory extends java.lang.Object implements org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option,org.pcap4j.packet.namednumber.IpV6OptionType>
- Since:
- pcap4j 0.9.16
- Author:
- Kaito Yamada
-
-
Method Summary
Modifier and Type Method Description static StaticIpV6OptionFactory
getInstance()
org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option
newInstance(byte[] rawData, int offset, int length)
This method is a variant ofnewInstance(byte[], int, int, IpV6OptionType...)
and exists only for performance reason.org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option
newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.IpV6OptionType number)
This method is a variant ofnewInstance(byte[], int, int, IpV6OptionType...)
and exists only for performance reason.org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option
newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.IpV6OptionType... numbers)
org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option
newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.IpV6OptionType number1, org.pcap4j.packet.namednumber.IpV6OptionType number2)
This method is a variant ofnewInstance(byte[], int, int, IpV6OptionType...)
and exists only for performance reason.
-
-
-
Method Detail
-
getInstance
public static StaticIpV6OptionFactory getInstance()
- Returns:
- the singleton instance of StaticIpV6OptionFactory.
-
newInstance
public org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option newInstance(byte[] rawData, int offset, int length)
This method is a variant ofnewInstance(byte[], int, int, IpV6OptionType...)
and exists only for performance reason.- Parameters:
rawData
- seePacketFactory.newInstance(byte[], int, int, N...)
.offset
- seePacketFactory.newInstance(byte[], int, int, N...)
.length
- seePacketFactory.newInstance(byte[], int, int, N...)
.- Returns:
- see
PacketFactory.newInstance(byte[], int, int, N...)
.
-
newInstance
public org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.IpV6OptionType number)
This method is a variant ofnewInstance(byte[], int, int, IpV6OptionType...)
and exists only for performance reason.- Parameters:
rawData
- seePacketFactory.newInstance(byte[], int, int, N...)
.offset
- seePacketFactory.newInstance(byte[], int, int, N...)
.length
- seePacketFactory.newInstance(byte[], int, int, N...)
.number
- seePacketFactory.newInstance(byte[], int, int, N...)
.- Returns:
- see
PacketFactory.newInstance(byte[], int, int, N...)
.
-
newInstance
public org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.IpV6OptionType number1, org.pcap4j.packet.namednumber.IpV6OptionType number2)
This method is a variant ofnewInstance(byte[], int, int, IpV6OptionType...)
and exists only for performance reason.- Parameters:
rawData
- seePacketFactory.newInstance(byte[], int, int, N...)
.offset
- seePacketFactory.newInstance(byte[], int, int, N...)
.length
- seePacketFactory.newInstance(byte[], int, int, N...)
.number1
- seePacketFactory.newInstance(byte[], int, int, N...)
.number2
- seePacketFactory.newInstance(byte[], int, int, N...)
.- Returns:
- see
PacketFactory.newInstance(byte[], int, int, N...)
.
-
newInstance
public org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.IpV6OptionType... numbers)
- Specified by:
newInstance
in interfaceorg.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV6ExtOptionsPacket.IpV6Option,org.pcap4j.packet.namednumber.IpV6OptionType>
-
-