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.
 
Method Summary
 void closeDumpFile()
          Close opening dump file.
 void writeDumpFile(Packet packet)
          Write a packet to dump file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

closeDumpFile

public void closeDumpFile()
Close opening dump file.

writeDumpFile

public void writeDumpFile(Packet packet)
Write a packet to dump file.