Interface IPcapInput

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    PcapInputNio, PcapngInputNio

    public interface IPcapInput
    extends java.io.Closeable
    A stream api to retrieve packets from the file.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Block nextBlock()
      Returns the next packet block.
      java.lang.String type()
      Returns the type of the file.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • type

        java.lang.String type()
        Returns the type of the file.
        Returns:
        type of the file.
      • nextBlock

        Block nextBlock()
                 throws java.io.IOException
        Returns the next packet block.
        Returns:
        next packet block in the file, or null if there is no more.
        Throws:
        java.io.IOException - if anything went wrong with underlying IO operations.