jpcap
Class JpcapWriter
java.lang.Object
|
+--jpcap.JpcapWriter
- public class JpcapWriter
- extends java.lang.Object
This class is to write packets to dump file
|
Constructor Summary |
JpcapWriter(Jpcap.JpcapInfo info,
java.lang.String filename)
Create JpcapWriter instance for saving packets to dump file. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
JpcapWriter
public JpcapWriter(Jpcap.JpcapInfo info,
java.lang.String filename)
throws java.io.IOException
- Create JpcapWriter instance for saving packets to dump file.
- Parameters:
info - JpcapInfo instance obtained from Jpcap#getInfo()filename - dump file name
closeDumpFile
public void closeDumpFile()
- Close opening dump file.
writeDumpFile
public void writeDumpFile(Packet packet)
- Write a packet to dump file.