public interface Frame
extends java.io.Externalizable
| Modifier and Type | Method and Description |
|---|---|
void |
frameAll()
Frame all protocols within this frame.
|
long |
getArrivalTime() |
Frame |
getFrame(Protocol p)
Find the frame for protocol p.
|
java.lang.String |
getName()
Get the name of the frame.
|
Frame |
getNextFrame()
Get the next frame, or null if there is none.
|
Buffer |
getPayload()
Get the payload of the frame.
|
PcapGlobalHeader |
getPcapGlobalHeader()
Each
Frame was captured in a pcap that had this
PcapGlobalHeader. |
Protocol |
getProtocol()
Get the protocol of this frame.
|
boolean |
hasProtocol(Protocol p)
Check whether this frame contains a particular protocol.
|
Packet |
parse()
A frame has not fully parsed the data but only enough so it can find the
boundary between the headers and its payload.
|
void |
write(java.io.OutputStream out) |
boolean hasProtocol(Protocol p) throws java.io.IOException
p - java.io.IOException - in case something goes wrong when framing the rest of the
protocol stackProtocol getProtocol()
Frame getFrame(Protocol p) throws java.io.IOException
p - java.io.IOException - in case something goes wrong when framing the rest of the
protocol stackvoid frameAll()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getName()
Frame getNextFrame() throws java.io.IOException
java.io.IOExceptionBuffer getPayload()
long getArrivalTime()
Packet parse() throws PacketParseException
Packet, which will examine all the headers
etc more closely to make sure that the data conforms to whatever protocol
it is dealing with.PacketParseException - TODOPcapGlobalHeader getPcapGlobalHeader()
Frame was captured in a pcap that had this
PcapGlobalHeader. Using this header you can create a new
PcapOutputStream and then write this Frame to the output
stream without having to worry about which byte order etc this
Frame is encoded in.void write(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All Rights Reserved.