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