public final class PcapDumper extends Object
public boolean isOpen()
public void dump(Packet packet) throws NotOpenException
packet - packetNotOpenException - if this PcapHandle is not open.public void dump(Packet packet, Timestamp timestamp) throws NotOpenException
packet - packettimestamp - timestampNotOpenException - if this PcapHandle is not open.public void dumpRaw(byte[] packet)
throws NotOpenException
packet - packetNotOpenException - if this PcapHandle is not open.public void dumpRaw(byte[] packet,
Timestamp timestamp)
throws NotOpenException
packet - packettimestamp - timestampNotOpenException - if this PcapHandle is not open.public void flush()
throws PcapNativeException,
NotOpenException
PcapNativeException - if an error occurs in the pcap native library.NotOpenException - if this PcapHandle is not open.public long ftell()
throws PcapNativeException,
NotOpenException
PcapNativeException - if an error occurs in the pcap native library.NotOpenException - if this PcapHandle is not open.public void close()
Copyright © 2011–2016 Pcap4J.org. All rights reserved.