Class StaticIpV6NeighborDiscoveryOptionFactory
java.lang.Object
org.pcap4j.packet.factory.statik.StaticIpV6NeighborDiscoveryOptionFactory
- All Implemented Interfaces:
PacketFactory<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption, IpV6NeighborDiscoveryOptionType>
public final class StaticIpV6NeighborDiscoveryOptionFactory
extends Object
implements PacketFactory<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption, IpV6NeighborDiscoveryOptionType>
- Since:
- pcap4j 0.9.16
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StaticIpV6NeighborDiscoveryOptionFactoryprivate final Map<IpV6NeighborDiscoveryOptionType, StaticIpV6NeighborDiscoveryOptionFactory.Instantiater> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(byte[] rawData, int offset, int length) newInstance(byte[] rawData, int offset, int length, IpV6NeighborDiscoveryOptionType number)
-
Field Details
-
INSTANCE
-
instantiaters
private final Map<IpV6NeighborDiscoveryOptionType, StaticIpV6NeighborDiscoveryOptionFactory.Instantiater> instantiaters
-
-
Constructor Details
-
StaticIpV6NeighborDiscoveryOptionFactory
private StaticIpV6NeighborDiscoveryOptionFactory()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of StaticIpV6NeighborDiscoveryOptionFactory.
-
newInstance
public IcmpV6CommonPacket.IpV6NeighborDiscoveryOption newInstance(byte[] rawData, int offset, int length, IpV6NeighborDiscoveryOptionType number) - Specified by:
newInstancein interfacePacketFactory<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption, IpV6NeighborDiscoveryOptionType>- Parameters:
rawData- rawDataoffset- offsetlength- lengthnumber- number- Returns:
- a new data object.
-
newInstance
public IcmpV6CommonPacket.IpV6NeighborDiscoveryOption newInstance(byte[] rawData, int offset, int length) - Specified by:
newInstancein interfacePacketFactory<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption, IpV6NeighborDiscoveryOptionType>- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new data object.
-
getTargetClass
public Class<? extends IcmpV6CommonPacket.IpV6NeighborDiscoveryOption> getTargetClass(IpV6NeighborDiscoveryOptionType number) - Specified by:
getTargetClassin interfacePacketFactory<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption, IpV6NeighborDiscoveryOptionType>- Parameters:
number- number- Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int, NamedNumber)with the number argument.
-
getTargetClass
- Specified by:
getTargetClassin interfacePacketFactory<IcmpV6CommonPacket.IpV6NeighborDiscoveryOption, IpV6NeighborDiscoveryOptionType>- Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int).
-