|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpcap.JpcapWriter
public class JpcapWriter
This class is used to save the captured packets into a file.
Method Summary | |
---|---|
void |
close()
Closes the opened file. |
static JpcapWriter |
openDumpFile(JpcapCaptor jpcap,
java.lang.String filename)
Opens a file to save the captured packets. |
void |
writePacket(Packet packet)
Saves a packet into the file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JpcapWriter openDumpFile(JpcapCaptor jpcap, java.lang.String filename) throws java.io.IOException
jpcap
- instance of JpcapCaptor that was used to capture (load) packetsfilename
- filename
IOException
- If the file cannot be openedpublic void close()
public void writePacket(Packet packet)
packet
- Packet to be saved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |