public final class PcapDumper extends Object
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dump(Packet packet) |
void |
dump(Packet packet,
long timestampSec,
int timestampMicros) |
void |
dumpRaw(byte[] packet) |
void |
dumpRaw(byte[] packet,
long timestampSec,
int timestampMicros) |
void |
flush() |
long |
ftell() |
boolean |
isOpen() |
public boolean isOpen()
public void dump(Packet packet) throws NotOpenException
packet
- NotOpenException
public void dump(Packet packet, long timestampSec, int timestampMicros) throws NotOpenException
packet
- timestampSec
- timestampMicros
- NotOpenException
public void dumpRaw(byte[] packet) throws NotOpenException
packet
- NotOpenException
public void dumpRaw(byte[] packet, long timestampSec, int timestampMicros) throws NotOpenException
packet
- timestampSec
- timestampMicros
- NotOpenException
public void flush() throws PcapNativeException, NotOpenException
PcapNativeException
NotOpenException
public long ftell() throws PcapNativeException, NotOpenException
PcapNativeException
NotOpenException
public void close()
Copyright © 2015. All Rights Reserved.