org.jnetstream.packet
Interface PacketFactory<T extends Packet>

All Known Subinterfaces:
FilePacketFactory<T>, LivePacketFactory, SerializedPacketFactory

public interface PacketFactory<T extends Packet>

A factory for creating new packet objects. This is a base interface class for more specific factories.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 T newPacket(com.slytechs.utils.memory.BitBuffer buffer, Protocol dlt)
          Creates a new packet from user supplied buffer captured on the supplied device.
 

Method Detail

newPacket

T newPacket(com.slytechs.utils.memory.BitBuffer buffer,
            Protocol dlt)
Creates a new packet from user supplied buffer captured on the supplied device.

Parameters:
buffer - contains packet data
dlt - protocol type for the header within the packet
Returns:
new packet