Class InterfaceDescriptionBlock


  • public class InterfaceDescriptionBlock
    extends java.lang.Object
    Section header block starts the pcapng files and contains sections.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LinkType linkType()
      Returns the link type in this block.
      int snapLen()
      Returns the maximum number of bytes dumped from each packet.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InterfaceDescriptionBlock

        public InterfaceDescriptionBlock​(LinkType linkType,
                                         int snapLen)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • linkType

        public LinkType linkType()
        Returns the link type in this block.
        Returns:
        link type
      • snapLen

        public int snapLen()
        Returns the maximum number of bytes dumped from each packet. The portion of each packet that exceeds this value will not be stored in the file.
        Returns:
        max length of packets.