パッケージ org.pcap4j.packet

インタフェース Packet.Builder

    • メソッドの詳細

      • get

        <T extends Packet.Builder> T get​(Class<T> clazz)
        Traverses this builder and its payload builder to find an object of the specified builder class and returns the object. If there are more than one objects of the specified class in this object, this method returns the most outer one of them.
        型パラメータ:
        T - builder
        パラメータ:
        clazz - the builder class of the object to get
        戻り値:
        a builder object if found; otherwise null
      • getOuterOf

        Packet.Builder getOuterOf​(Class<? extends Packet.Builder> clazz)
        Returns the outer builder object of a builder object get(clazz) returns.
        パラメータ:
        clazz - the builder class of the object whose outer builder object is what you want to get
        戻り値:
        a builder object if found; otherwise null
      • payloadBuilder

        Packet.Builder payloadBuilder​(Packet.Builder payloadBuilder)
        Set the payload builder.
        パラメータ:
        payloadBuilder - a Builder object to set
        戻り値:
        this Builder object for method chaining
      • getPayloadBuilder

        Packet.Builder getPayloadBuilder()
        Get the payload builder of this object.
        戻り値:
        the payload builder of this object
      • build

        Packet build()
        Build a packet object using values set to this object.
        戻り値:
        a new Packet object