Package org.pcap4j.packet.factory.statik
Class StaticEtherTypePacketFactory
java.lang.Object
org.pcap4j.packet.factory.statik.AbstractStaticPacketFactory<EtherType>
org.pcap4j.packet.factory.statik.StaticEtherTypePacketFactory
- All Implemented Interfaces:
PacketFactory<Packet,EtherType>
- Since:
- pcap4j 0.9.14
-
Field Summary
FieldsFields inherited from class org.pcap4j.packet.factory.statik.AbstractStaticPacketFactory
instantiaters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StaticEtherTypePacketFactorynewInstance(byte[] rawData, int offset, int length, EtherType number) Methods inherited from class org.pcap4j.packet.factory.statik.AbstractStaticPacketFactory
getTargetClass, getTargetClass, newInstance
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StaticEtherTypePacketFactory
private StaticEtherTypePacketFactory()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance of StaticEtherTypePacketFactory.
-
newInstance
- Specified by:
newInstancein interfacePacketFactory<Packet,EtherType> - Overrides:
newInstancein classAbstractStaticPacketFactory<EtherType>- Parameters:
rawData- rawDataoffset- offsetlength- lengthnumber- number- Returns:
- a new data object.
-