Class GtpSelector

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

public final class GtpSelector extends AbstractPacket
Since:
pcap4j 1.6.6
See Also:
  • Field Details

  • Constructor Details

    • GtpSelector

      private GtpSelector()
  • 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 an GTP (version x) 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