Package org.pcap4j.packet.factory.statik
Class StaticIpV4InternetTimestampOptionDataFactory
java.lang.Object
org.pcap4j.packet.factory.statik.StaticIpV4InternetTimestampOptionDataFactory
- All Implemented Interfaces:
PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
public final class StaticIpV4InternetTimestampOptionDataFactory
extends Object
implements PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Since:
- pcap4j 0.9.16
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StaticIpV4InternetTimestampOptionDataFactoryprivate final Map<IpV4InternetTimestampOptionFlag, StaticIpV4InternetTimestampOptionDataFactory.Instantiater> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(byte[] rawData, int offset, int length) newInstance(byte[] rawData, int offset, int length, IpV4InternetTimestampOptionFlag number)
-
Field Details
-
INSTANCE
-
instantiaters
private final Map<IpV4InternetTimestampOptionFlag,StaticIpV4InternetTimestampOptionDataFactory.Instantiater> instantiaters
-
-
Constructor Details
-
StaticIpV4InternetTimestampOptionDataFactory
private StaticIpV4InternetTimestampOptionDataFactory()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of StaticIpV4InternetTimestampOptionDataFactory.
-
newInstance
public IpV4InternetTimestampOption.IpV4InternetTimestampOptionData newInstance(byte[] rawData, int offset, int length, IpV4InternetTimestampOptionFlag number) - Specified by:
newInstancein interfacePacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag> - Parameters:
rawData- rawDataoffset- offsetlength- lengthnumber- number- Returns:
- a new data object.
-
newInstance
public IpV4InternetTimestampOption.IpV4InternetTimestampOptionData newInstance(byte[] rawData, int offset, int length) - Specified by:
newInstancein interfacePacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag> - Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new data object.
-
getTargetClass
public Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getTargetClass(IpV4InternetTimestampOptionFlag number) - Specified by:
getTargetClassin interfacePacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag> - Parameters:
number- number- Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int, NamedNumber)with the number argument.
-
getTargetClass
public Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getTargetClass()- Specified by:
getTargetClassin interfacePacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag> - Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int).
-