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 java.lang.Object implements PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Since:
- pcap4j 0.9.16
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceStaticIpV4InternetTimestampOptionDataFactory.Instantiater
-
Field Summary
Fields Modifier and Type Field Description private static StaticIpV4InternetTimestampOptionDataFactoryINSTANCEprivate java.util.Map<IpV4InternetTimestampOptionFlag,StaticIpV4InternetTimestampOptionDataFactory.Instantiater>instantiaters
-
Constructor Summary
Constructors Modifier Constructor Description privateStaticIpV4InternetTimestampOptionDataFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticIpV4InternetTimestampOptionDataFactorygetInstance()java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData>getTargetClass()java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData>getTargetClass(IpV4InternetTimestampOptionFlag number)IpV4InternetTimestampOption.IpV4InternetTimestampOptionDatanewInstance(byte[] rawData, int offset, int length)IpV4InternetTimestampOption.IpV4InternetTimestampOptionDatanewInstance(byte[] rawData, int offset, int length, IpV4InternetTimestampOptionFlag number)
-
-
-
Field Detail
-
INSTANCE
private static final StaticIpV4InternetTimestampOptionDataFactory INSTANCE
-
instantiaters
private final java.util.Map<IpV4InternetTimestampOptionFlag,StaticIpV4InternetTimestampOptionDataFactory.Instantiater> instantiaters
-
-
Method Detail
-
getInstance
public static StaticIpV4InternetTimestampOptionDataFactory 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 java.lang.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 java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getTargetClass()
- Specified by:
getTargetClassin interfacePacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>- Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int).
-
-