パッケージ org.pcap4j.packet

クラス EncryptedPacket

    • メソッドの詳細

      • newPacket

        public static EncryptedPacket newPacket​(byte[] rawData,
                                                int offset,
                                                int length)
        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 EncryptedPacket object.
      • getBuilder

        public EncryptedPacket.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
      • modifier

        protected String modifier()
      • length

        public int length()
        クラスからコピーされた説明: AbstractPacket
        Returns the packet length in bytes. This method calls calcLength() and caches the return value when it is called for the first time, and then, this method returns the cached value from the second time.
        定義:
        length インタフェース内 Packet
        オーバーライド:
        length クラス内 AbstractPacket
        戻り値:
        the length of the byte stream of the packet represented by this object in bytes
      • getRawData

        public byte[] getRawData()
        クラスからコピーされた説明: AbstractPacket
        Returns this packet's raw data. This method calls buildRawData() and caches the return value when it is called for the first time, and then, this method returns the cached value from the second time. More correctly, this method returns a copy of the cached value, so that the cache can't be changed.
        定義:
        getRawData インタフェース内 Packet
        オーバーライド:
        getRawData クラス内 AbstractPacket
        戻り値:
        this packet's raw data, namely the byte stream which is actually sent through real network
      • buildString

        protected String buildString()
        クラスからコピーされた説明: AbstractPacket
        This method builds the value toString() will return by concatenating the header's string representation and the payload's string representation. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.
        オーバーライド:
        buildString クラス内 AbstractPacket
        戻り値:
        a string representation of this object
      • equals

        public boolean equals​(Object obj)
        クラスからコピーされた説明: AbstractPacket
        Indicates whether some other object is "equal to" this one. This method firstly compares this packet's header using the header's equals(Object) method, then compares this packet's payload using the payload's equals(Object) method. If you write this subclass with fields which represent somethings other than header or payload, you need to override this method.
        オーバーライド:
        equals クラス内 AbstractPacket
      • calcHashCode

        protected int calcHashCode()
        クラスからコピーされた説明: AbstractPacket
        This method calculates the value hashCode() will return using the header's hash code and the payload's hash code. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.
        オーバーライド:
        calcHashCode クラス内 AbstractPacket
        戻り値:
        a calculated hash code value for the object