org.jnetstream.capture
Interface CapturePacketOutput<T extends Packet>
- All Known Implementing Classes:
- PacketOutputStream
public interface CapturePacketOutput<T extends Packet>
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(T packet)
Writes a CapturePacket to the underlying storage or stream. |
writePacket
void writePacket(T packet)
throws java.io.IOException
- Writes 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