Class PcapDumper

java.lang.Object
pcap.api.internal.PcapDumper
All Implemented Interfaces:
java.lang.AutoCloseable, pcap.spi.Dumper

@Inclubating
public class PcapDumper
extends java.lang.Object
implements pcap.spi.Dumper
Pcap dumper implementation.
Author:
Ardika Rommy Sanjaya
  • Constructor Summary

    Constructors 
    Constructor Description
    PcapDumper​(java.foreign.memory.Pointer<pcap_mapping.pcap_dumper> pcap_dumper)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void dump​(pcap.spi.PacketHeader header, pcap.spi.PacketBuffer buffer)  
    void flush()  
    long position()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • dump

      public void dump​(pcap.spi.PacketHeader header, pcap.spi.PacketBuffer buffer)
      Specified by:
      dump in interface pcap.spi.Dumper
    • position

      public long position()
      Specified by:
      position in interface pcap.spi.Dumper
    • flush

      public void flush()
      Specified by:
      flush in interface pcap.spi.Dumper
    • close

      public void close()
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface pcap.spi.Dumper