パッケージ org.pcap4j.core
クラス PcapDumper
- java.lang.Object
-
- org.pcap4j.core.PcapDumper
-
- すべての実装されたインタフェース:
Closeable,AutoCloseable
public final class PcapDumper extends Object implements Closeable
- 導入されたバージョン:
- pcap4j 0.9.9
- 作成者:
- Kaito Yamada
-
-
メソッドの詳細
-
isOpen
public boolean isOpen()
- 戻り値:
- true if this PcapDumper is open; false otherwise.
-
dump
public void dump(Packet packet) throws NotOpenException
- パラメータ:
packet- packet- 例外:
NotOpenException- if this PcapHandle is not open.
-
dump
public void dump(Packet packet, Timestamp timestamp) throws NotOpenException
- パラメータ:
packet- packettimestamp- timestamp- 例外:
NotOpenException- if this PcapHandle is not open.
-
dumpRaw
public void dumpRaw(byte[] packet) throws NotOpenException- パラメータ:
packet- packet- 例外:
NotOpenException- if this PcapHandle is not open.
-
dumpRaw
public void dumpRaw(byte[] packet, Timestamp timestamp) throws NotOpenException- パラメータ:
packet- packettimestamp- timestamp- 例外:
NotOpenException- if this PcapHandle is not open.
-
flush
public void flush() throws PcapNativeException, NotOpenException- 例外:
PcapNativeException- if an error occurs in the pcap native library.NotOpenException- if this PcapHandle is not open.
-
ftell
public long ftell() throws PcapNativeException, NotOpenException- 戻り値:
- the file position for a "savefile".
- 例外:
PcapNativeException- if an error occurs in the pcap native library.NotOpenException- if this PcapHandle is not open.
-
close
public void close()
- 定義:
closeインタフェース内AutoCloseable- 定義:
closeインタフェース内Closeable
-
-