Package org.pcap4j.packet.factory.statik
Class StaticIpV4TosFactory
java.lang.Object
org.pcap4j.packet.factory.statik.StaticIpV4TosFactory
- All Implemented Interfaces:
PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
public final class StaticIpV4TosFactory
extends Object
implements PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
- Since:
- pcap4j 0.9.16
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StaticIpV4TosFactoryClass<? extends IpV4Packet.IpV4Tos> Class<? extends IpV4Packet.IpV4Tos> getTargetClass(NotApplicable number) Deprecated.newInstance(byte[] rawData, int offset, int length) newInstance(byte[] rawData, int offset, int length, NotApplicable number) Deprecated.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StaticIpV4TosFactory
public StaticIpV4TosFactory()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of StaticIpV4TosFactory.
-
newInstance
@Deprecated public IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length, NotApplicable number) Deprecated.- Specified by:
newInstancein interfacePacketFactory<IpV4Packet.IpV4Tos,NotApplicable> - Parameters:
rawData- rawDataoffset- offsetlength- lengthnumber- number- Returns:
- a new data object.
-
newInstance
- Specified by:
newInstancein interfacePacketFactory<IpV4Packet.IpV4Tos,NotApplicable> - Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new data object.
-
getTargetClass
Deprecated.- Specified by:
getTargetClassin interfacePacketFactory<IpV4Packet.IpV4Tos,NotApplicable> - Parameters:
number- number- Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int, NamedNumber)with the number argument.
-
getTargetClass
- Specified by:
getTargetClassin interfacePacketFactory<IpV4Packet.IpV4Tos,NotApplicable> - Returns:
- a
Classobject this factory instantiates byPacketFactory.newInstance(byte[], int, int).
-