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