|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CapturePacket
A captured network packet. The actual packet data may have been captured live from a network interface or device or came from a file, streamed . That is this interface does not neccessarily represent a 1-to-1 relationship with any record contained within the capture file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jnetstream.packet.Packet |
|---|
Packet.Property |
| Method Summary | |
|---|---|
CaptureDevice |
getCaptureDevice()
A reference to the capture device that the packet was captured on. |
long |
getIncludedLength()
Gets the number of octets that were included as packet data after the packet was captured. |
long |
getOriginalLength()
Gets the number of octets of the actual packet as it was originally seen at the time of the capture or on the wire. |
| Methods inherited from interface org.jnetstream.packet.Packet |
|---|
format, getAllHeaders, getBuffer, getData, getHeader, getHeader, getHeaderCount, getProperty, getTimestampNanos, getTimestampSeconds, hasCompleteHeader, hasCompleteHeader, hasHeader, hasHeader, isTruncated, iterator |
| Method Detail |
|---|
long getIncludedLength()
throws java.io.IOException
getIncludedLength in interface Packetjava.io.IOException
long getOriginalLength()
throws java.io.IOException
getIncludedLength() method since sometimes packets
are "sliced", "truncated", "snapped" etc to preserve storage space.
getOriginalLength in interface Packetjava.io.IOExceptionCaptureDevice getCaptureDevice()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||