org.jnetstream.capture
Interface CapturePacketInput<T extends CapturePacket>

All Known Implementing Classes:
PacketInputStream

public interface CapturePacketInput<T extends CapturePacket>

CapturePacketInput interface reads CapturePacket objects from underlying storage or stream which is defined by the class implementing this interface.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 T readPacket()
          Read and return a StreamPacket object.
 

Method Detail

readPacket

T readPacket()
                                   throws java.io.IOException
Read and return a StreamPacket object. The class that implements this interface defines where the object is "read" from.

Returns:
the CapturePacket object read from storage or stream
Throws:
java.io.IOException - if any of the usual InputOutput related exceptions occur