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