public interface Frame extends 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.
|
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(OutputStream out) |
readExternal, writeExternalboolean hasProtocol(Protocol p) throws IOException
p - IOException - in case something goes wrong when framing the rest of the
protocol stackProtocol getProtocol()
Frame getFrame(Protocol p) throws IOException
p - IOException - in case something goes wrong when framing the rest of the
protocol stackvoid frameAll()
throws IOException
IOExceptionString getName()
Frame getNextFrame() throws IOException
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(OutputStream out) throws IOException
IOExceptionCopyright © 2021. All Rights Reserved.