public final class PcapDumper
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this PcapDumper.
|
void |
dump(Packet packet) |
void |
dump(Packet packet,
java.time.Instant timestamp) |
void |
dump(PcapPacket packet) |
void |
dumpRaw(byte[] packet) |
void |
dumpRaw(byte[] packet,
java.time.Instant timestamp) |
void |
flush() |
long |
ftell() |
boolean |
isOpen() |
public boolean isOpen()
public void dump(Packet packet) throws NotOpenException
packet - packetNotOpenException - if this PcapHandle is not open.public void dump(PcapPacket packet) throws NotOpenException
packet - packetNotOpenException - if this PcapHandle is not open.public void dump(Packet packet, java.time.Instant 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,
java.time.Instant 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()
close in interface java.lang.AutoCloseableCopyright © 2011 - 2018 Pcap4J.org. All rights reserved.