パッケージ org.pcap4j.packet

クラス IpSelector

    • メソッドの詳細

      • 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.
        パラメータ:
        rawData - rawData
        offset - offset
        length - length
        戻り値:
        a new Packet object representing an IP (v4 or v6) packet.
        例外:
        IllegalRawDataException - if parsing the raw data fails.
      • getBuilder

        public Packet.Builder getBuilder()
        インタフェースからコピーされた説明: Packet
        Returns a new Builder object populated with this object's fields' values.
        定義:
        getBuilder インタフェース内 Packet
        定義:
        getBuilder クラス内 AbstractPacket
        戻り値:
        a new Builder object populated with this object's fields values