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>
public final class StaticEtherTypePacketFactory extends AbstractStaticPacketFactory<EtherType>
- Since:
- pcap4j 0.9.14
-
-
Field Summary
Fields Modifier and Type Field Description private static StaticEtherTypePacketFactoryINSTANCE-
Fields inherited from class org.pcap4j.packet.factory.statik.AbstractStaticPacketFactory
instantiaters
-
-
Constructor Summary
Constructors Modifier Constructor Description privateStaticEtherTypePacketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticEtherTypePacketFactorygetInstance()PacketnewInstance(byte[] rawData, int offset, int length, EtherType number)-
Methods inherited from class org.pcap4j.packet.factory.statik.AbstractStaticPacketFactory
getTargetClass, getTargetClass, newInstance
-
-
-
-
Field Detail
-
INSTANCE
private static final StaticEtherTypePacketFactory INSTANCE
-
-
Method Detail
-
getInstance
public static StaticEtherTypePacketFactory getInstance()
- Returns:
- the singleton instance of StaticEtherTypePacketFactory.
-
newInstance
public Packet newInstance(byte[] rawData, int offset, int length, EtherType number)
- Specified by:
newInstancein interfacePacketFactory<Packet,EtherType>- Overrides:
newInstancein classAbstractStaticPacketFactory<EtherType>- Parameters:
rawData- rawDataoffset- offsetlength- lengthnumber- number- Returns:
- a new data object.
-
-