public final class PropertiesBasedIpV4TosFactory extends Object implements PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
Modifier and Type | Method and Description |
---|---|
static PropertiesBasedIpV4TosFactory |
getInstance() |
Class<? extends IpV4Packet.IpV4Tos> |
getTargetClass() |
Class<? extends IpV4Packet.IpV4Tos> |
getTargetClass(NotApplicable number)
Deprecated.
|
IpV4Packet.IpV4Tos |
newInstance(byte[] rawData,
int offset,
int length) |
IpV4Packet.IpV4Tos |
newInstance(byte[] rawData,
int offset,
int length,
Class<? extends IpV4Packet.IpV4Tos> tosClass)
A static factory method.
|
IpV4Packet.IpV4Tos |
newInstance(byte[] rawData,
int offset,
int length,
NotApplicable number)
Deprecated.
|
public static PropertiesBasedIpV4TosFactory getInstance()
@Deprecated public IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length, NotApplicable number)
newInstance
in interface PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
rawData
- rawDataoffset
- offsetlength
- lengthnumber
- numberpublic IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length)
newInstance
in interface PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
rawData
- rawDataoffset
- offsetlength
- lengthpublic IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length, Class<? extends IpV4Packet.IpV4Tos> tosClass)
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthtosClass
- tosClassIllegalStateException
- if an access to the newInstance method of the tosClass fails.IllegalArgumentException
- if an exception is thrown by
newInstance method of the tosClass.NullPointerException
- if any of arguments are null.@Deprecated public Class<? extends IpV4Packet.IpV4Tos> getTargetClass(NotApplicable number)
getTargetClass
in interface PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
number
- numberClass
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int, NamedNumber)
with the number argument.public Class<? extends IpV4Packet.IpV4Tos> getTargetClass()
getTargetClass
in interface PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
Class
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int)
.Copyright © 2011–2016 Pcap4J.org. All rights reserved.