Package org.pcap4j.packet.factory
Interface PacketFactoryBinder
-
public interface PacketFactoryBinder
Pcap4J modules can provide a factory to build new packets as they are received.
The implementing modules must also provide aPacketFactoryBinderProvider
- Since:
- pcap4j 1.8.0
- Author:
- Jordan Dubie
-
-
Method Summary
Modifier and Type Method Description <T,N extends NamedNumber<?,?>>
PacketFactory<T,N>getPacketFactory(java.lang.Class<T> targetClass, java.lang.Class<N> numberClass)
Provides aPacketFactory
to build the received packets.
-
-
-
Method Detail
-
getPacketFactory
<T,N extends NamedNumber<?,?>> PacketFactory<T,N> getPacketFactory(java.lang.Class<T> targetClass, java.lang.Class<N> numberClass)
Provides aPacketFactory
to build the received packets.- Type Parameters:
T
- the type of object the factory method returns.N
- the type of object that is given to the factory method.- Parameters:
targetClass
- targetClassnumberClass
- numberClass- Returns:
- the factory
-
-