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