jnetpcap.capture
Interface CapturePacketOutput

All Known Implementing Classes:
CaptureOutputStream

public interface CapturePacketOutput

Allows writting of CapturePackets. The use of this class can be java IO streams or some other types of implementations. The CapturePacket is serialized in a propriatory way, not related java IO mechanism, and deserialized into a StreamPacket. StreamPacket once the transmitted accross a stream, looses its reference and its relationship to the original storage of the packet and the packet once modified can not be written backout to the original storage. Also notice that the packet may have come from a live network capture which does not have any storage at all.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 void writePacket(CapturePacket packet)
          Write a CapturePacket to the underlying storage or stream.
 

Method Detail

writePacket

void writePacket(CapturePacket packet)
                 throws java.io.IOException
Write a CapturePacket to the underlying storage or stream. The class that implements this interface defines how the object is written.

Parameters:
packet - the packet to be written
Throws:
java.io.IOException - any of the usual Input/Output related exceptions