Package org.pcap4j.packet.factory.statik
Class StaticIpV6TrafficClassFactory
- java.lang.Object
-
- org.pcap4j.packet.factory.statik.StaticIpV6TrafficClassFactory
-
- All Implemented Interfaces:
org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV6Packet.IpV6TrafficClass,org.pcap4j.packet.namednumber.NotApplicable>
public final class StaticIpV6TrafficClassFactory extends java.lang.Object implements org.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV6Packet.IpV6TrafficClass,org.pcap4j.packet.namednumber.NotApplicable>
- Since:
- pcap4j 0.9.16
- Author:
- Kaito Yamada
-
-
Method Summary
Modifier and Type Method Description static StaticIpV6TrafficClassFactory
getInstance()
org.pcap4j.packet.IpV6Packet.IpV6TrafficClass
newInstance(byte[] rawData, int offset, int length)
This method is a variant ofnewInstance(byte[], int, int, NotApplicable...)
and exists only for performance reason.org.pcap4j.packet.IpV6Packet.IpV6TrafficClass
newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.NotApplicable... numbers)
-
-
-
Method Detail
-
getInstance
public static StaticIpV6TrafficClassFactory getInstance()
- Returns:
- the singleton instance of StaticIpV6TrafficClassFactory.
-
newInstance
public org.pcap4j.packet.IpV6Packet.IpV6TrafficClass newInstance(byte[] rawData, int offset, int length)
This method is a variant ofnewInstance(byte[], int, int, NotApplicable...)
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.IpV6Packet.IpV6TrafficClass newInstance(byte[] rawData, int offset, int length, org.pcap4j.packet.namednumber.NotApplicable... numbers)
- Specified by:
newInstance
in interfaceorg.pcap4j.packet.factory.PacketFactory<org.pcap4j.packet.IpV6Packet.IpV6TrafficClass,org.pcap4j.packet.namednumber.NotApplicable>
-
-