クラス PropertiesBasedIpV4TosFactory
- java.lang.Object
-
- org.pcap4j.packet.factory.propertiesbased.PropertiesBasedIpV4TosFactory
-
- すべての実装されたインタフェース:
PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
public final class PropertiesBasedIpV4TosFactory extends Object implements PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
- 導入されたバージョン:
- pcap4j 0.9.14
- 作成者:
- Kaito Yamada
-
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 推奨されていないメソッド 修飾子とタイプ メソッド 説明 static PropertiesBasedIpV4TosFactory
getInstance()
Class<? extends IpV4Packet.IpV4Tos>
getTargetClass()
Class<? extends IpV4Packet.IpV4Tos>
getTargetClass(NotApplicable number)
推奨されていません。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)
推奨されていません。
-
-
-
メソッドの詳細
-
getInstance
public static PropertiesBasedIpV4TosFactory getInstance()
- 戻り値:
- the singleton instance of PropertiesBasedIpV4TosFactory
-
newInstance
@Deprecated public IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length, NotApplicable number)
推奨されていません。- 定義:
newInstance
インタフェース内PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
- パラメータ:
rawData
- rawDataoffset
- offsetlength
- lengthnumber
- number- 戻り値:
- a new data object.
-
newInstance
public IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length)
- 定義:
newInstance
インタフェース内PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
- パラメータ:
rawData
- rawDataoffset
- offsetlength
- length- 戻り値:
- a new data object.
-
newInstance
public IpV4Packet.IpV4Tos newInstance(byte[] rawData, int offset, int length, Class<? extends IpV4Packet.IpV4Tos> tosClass)
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.- パラメータ:
rawData
- rawDataoffset
- offsetlength
- lengthtosClass
- tosClass- 戻り値:
- a new IpV4Tos object.
- 例外:
IllegalStateException
- 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.
-
getTargetClass
@Deprecated public Class<? extends IpV4Packet.IpV4Tos> getTargetClass(NotApplicable number)
推奨されていません。- 定義:
getTargetClass
インタフェース内PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
- パラメータ:
number
- number- 戻り値:
- a
Class
object this factory instantiates byPacketFactory.newInstance(byte[], int, int, NamedNumber)
with the number argument.
-
getTargetClass
public Class<? extends IpV4Packet.IpV4Tos> getTargetClass()
- 定義:
getTargetClass
インタフェース内PacketFactory<IpV4Packet.IpV4Tos,NotApplicable>
- 戻り値:
- a
Class
object this factory instantiates byPacketFactory.newInstance(byte[], int, int)
.
-
-