Class PppSelector

java.lang.Object
org.pcap4j.packet.AbstractPacket
org.pcap4j.packet.PppSelector
All Implemented Interfaces:
Serializable, Iterable<Packet>, Packet

public final class PppSelector extends AbstractPacket
Since:
pcap4j 1.4.0
See Also:
  • Field Details

  • Constructor Details

    • PppSelector

      private PppSelector()
  • Method Details

    • newPacket

      public static Packet newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException
      A static factory method. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
      length - length
      Returns:
      a new Packet object representing a PPP packet.
      Throws:
      IllegalRawDataException - if parsing the raw data fails.
    • getBuilder

      public Packet.Builder getBuilder()
      Description copied from interface: Packet
      Returns a new Builder object populated with this object's fields' values.
      Specified by:
      getBuilder in interface Packet
      Specified by:
      getBuilder in class AbstractPacket
      Returns:
      a new Builder object populated with this object's fields values