public final class PropertiesBasedIpV4InternetTimestampOptionDataFactory extends Object implements PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
Modifier and Type | Method and Description |
---|---|
static PropertiesBasedIpV4InternetTimestampOptionDataFactory |
getInstance() |
Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> |
getTargetClass() |
Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> |
getTargetClass(IpV4InternetTimestampOptionFlag flag) |
IpV4InternetTimestampOption.IpV4InternetTimestampOptionData |
newInstance(byte[] rawData,
int offset,
int length) |
IpV4InternetTimestampOption.IpV4InternetTimestampOptionData |
newInstance(byte[] rawData,
int offset,
int length,
Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> dataClass) |
IpV4InternetTimestampOption.IpV4InternetTimestampOptionData |
newInstance(byte[] rawData,
int offset,
int length,
IpV4InternetTimestampOptionFlag flag) |
public static PropertiesBasedIpV4InternetTimestampOptionDataFactory getInstance()
public IpV4InternetTimestampOption.IpV4InternetTimestampOptionData newInstance(byte[] rawData, int offset, int length, IpV4InternetTimestampOptionFlag flag)
newInstance
in interface PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
rawData
- rawDataoffset
- offsetlength
- lengthflag
- numberpublic IpV4InternetTimestampOption.IpV4InternetTimestampOptionData newInstance(byte[] rawData, int offset, int length)
newInstance
in interface PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
rawData
- rawDataoffset
- offsetlength
- lengthpublic IpV4InternetTimestampOption.IpV4InternetTimestampOptionData newInstance(byte[] rawData, int offset, int length, Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> dataClass)
rawData
- rawDataoffset
- offsetlength
- lengthdataClass
- dataClassIllegalStateException
- if an access to the newInstance method of the dataClass fails.IllegalArgumentException
- if an exception other than IllegalRawDataException
is thrown by newInstance method of the dataClass.NullPointerException
- if any of arguments are null.public Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getTargetClass(IpV4InternetTimestampOptionFlag flag)
getTargetClass
in interface PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
flag
- numberClass
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int, NamedNumber)
with the number argument.public Class<? extends IpV4InternetTimestampOption.IpV4InternetTimestampOptionData> getTargetClass()
getTargetClass
in interface PacketFactory<IpV4InternetTimestampOption.IpV4InternetTimestampOptionData,IpV4InternetTimestampOptionFlag>
Class
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int)
.Copyright © 2011–2016 Pcap4J.org. All rights reserved.