Class PropertiesBasedIpV4InternetTimestampOptionDataFactory
- java.lang.Object
-
- org.pcap4j.packet.factory.propertiesbased.AbstractPropertiesBasedFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
-
- org.pcap4j.packet.factory.propertiesbased.PropertiesBasedIpV4InternetTimestampOptionDataFactory
-
- All Implemented Interfaces:
PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
public final class PropertiesBasedIpV4InternetTimestampOptionDataFactory extends AbstractPropertiesBasedFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Since:
- pcap4j 0.9.16
- Author:
- Kaito Yamada
-
-
Method Summary
Modifier and Type Method Description static PropertiesBasedIpV4InternetTimestampOptionDataFactory
getInstance()
protected java.lang.String
getStaticFactoryMethodName()
protected java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData>
getTargetClass(IpV4InternetTimestampOptionFlag flag)
protected java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData>
getUnknownClass()
protected IpV4InternetTimestampOption.IpV4InternetTimestampOptionData
newIllegalData(byte[] rawData, int offset, int length, IllegalRawDataException cause)
This method is called whenIllegalRawDataException
is thrown during instantiating a classgetTargetClass(N)
orAbstractPropertiesBasedFactory.getUnknownClass()
return and create an object representing an illegal packet or packet field.-
Methods inherited from class org.pcap4j.packet.factory.propertiesbased.AbstractPropertiesBasedFactory
newInstance
-
-
-
-
Method Detail
-
getInstance
public static PropertiesBasedIpV4InternetTimestampOptionDataFactory getInstance()
- Returns:
- the singleton instance of PropertiesBasedIpV4InternetTimestampDataFactory.
-
getTargetClass
protected java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getTargetClass(IpV4InternetTimestampOptionFlag flag)
- Specified by:
getTargetClass
in classAbstractPropertiesBasedFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Parameters:
flag
- number- Returns:
- the class that is supposed to be instantiated for the given number.
-
getUnknownClass
protected java.lang.Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getUnknownClass()
- Specified by:
getUnknownClass
in classAbstractPropertiesBasedFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Returns:
- the class that is supposed to be instantiated for numbers this factory doesn't support.
-
getStaticFactoryMethodName
protected java.lang.String getStaticFactoryMethodName()
- Specified by:
getStaticFactoryMethodName
in classAbstractPropertiesBasedFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Returns:
- the name of the static factory method to instantiate classes
getTargetClass(N)
andAbstractPropertiesBasedFactory.getUnknownClass()
return.
-
newIllegalData
protected IpV4InternetTimestampOption.IpV4InternetTimestampOptionData newIllegalData(byte[] rawData, int offset, int length, IllegalRawDataException cause)
Description copied from class:AbstractPropertiesBasedFactory
This method is called whenIllegalRawDataException
is thrown during instantiating a classgetTargetClass(N)
orAbstractPropertiesBasedFactory.getUnknownClass()
return and create an object representing an illegal packet or packet field.- Specified by:
newIllegalData
in classAbstractPropertiesBasedFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
- Parameters:
rawData
- rawDataoffset
- offsetlength
- lengthcause
- cause- Returns:
- a new object.
-
-