public final class PropertiesBasedIpV6RoutingDataFactory extends Object implements PacketFactory<IpV6ExtRoutingPacket.IpV6RoutingData,IpV6RoutingType>
Modifier and Type | Method and Description |
---|---|
static PropertiesBasedIpV6RoutingDataFactory |
getInstance() |
Class<? extends IpV6ExtRoutingPacket.IpV6RoutingData> |
getTargetClass() |
Class<? extends IpV6ExtRoutingPacket.IpV6RoutingData> |
getTargetClass(IpV6RoutingType type) |
IpV6ExtRoutingPacket.IpV6RoutingData |
newInstance(byte[] rawData,
int offset,
int length) |
IpV6ExtRoutingPacket.IpV6RoutingData |
newInstance(byte[] rawData,
int offset,
int length,
Class<? extends IpV6ExtRoutingPacket.IpV6RoutingData> dataClass) |
IpV6ExtRoutingPacket.IpV6RoutingData |
newInstance(byte[] rawData,
int offset,
int length,
IpV6RoutingType type) |
public static PropertiesBasedIpV6RoutingDataFactory getInstance()
public IpV6ExtRoutingPacket.IpV6RoutingData newInstance(byte[] rawData, int offset, int length, IpV6RoutingType type)
newInstance
in interface PacketFactory<IpV6ExtRoutingPacket.IpV6RoutingData,IpV6RoutingType>
rawData
- rawDataoffset
- offsetlength
- lengthtype
- numberpublic IpV6ExtRoutingPacket.IpV6RoutingData newInstance(byte[] rawData, int offset, int length)
newInstance
in interface PacketFactory<IpV6ExtRoutingPacket.IpV6RoutingData,IpV6RoutingType>
rawData
- rawDataoffset
- offsetlength
- lengthpublic IpV6ExtRoutingPacket.IpV6RoutingData newInstance(byte[] rawData, int offset, int length, Class<? extends IpV6ExtRoutingPacket.IpV6RoutingData> 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 IpV6ExtRoutingPacket.IpV6RoutingData> getTargetClass(IpV6RoutingType type)
getTargetClass
in interface PacketFactory<IpV6ExtRoutingPacket.IpV6RoutingData,IpV6RoutingType>
type
- numberClass
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int, NamedNumber)
with the number argument.public Class<? extends IpV6ExtRoutingPacket.IpV6RoutingData> getTargetClass()
getTargetClass
in interface PacketFactory<IpV6ExtRoutingPacket.IpV6RoutingData,IpV6RoutingType>
Class
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int)
.Copyright © 2011–2016 Pcap4J.org. All rights reserved.