パッケージ org.pcap4j.packet

クラス PppPacket

    • メソッドの詳細

      • getHeader

        public PppPacket.PppHeader getHeader()
        クラスからコピーされた説明: AbstractPacket
        Returns the Header object representing this packet's header. This subclass have to override this method if the packet represented by the subclass has a header.
        定義:
        getHeader インタフェース内 Packet
        戻り値:
        the Header object representing this packet's header. May be null if the header doesn't exist
      • getBuilder

        public PppPacket.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
      • getPayload

        public Packet getPayload()
        クラスからコピーされた説明: AbstractPacket
        Returns the Packet object representing this packet's payload. This subclass have to override this method if the packet represented by the subclass has a payload.
        定義:
        getPayload インタフェース内 Packet
        オーバーライド:
        getPayload クラス内 AbstractPacket
        戻り値:
        the Packet object representing this packet's payload. May be null if the payload doesn't exist
      • getPad

        public byte[] getPad()
        戻り値:
        pad
      • calcLength

        protected int calcLength()
        クラスからコピーされた説明: AbstractPacket
        This method calculates the value length() will return by adding up the header length and the payload length. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.
        オーバーライド:
        calcLength クラス内 AbstractPacket
        戻り値:
        a calculated length
      • buildRawData

        protected byte[] buildRawData()
        クラスからコピーされた説明: AbstractPacket
        This method builds the value getRawData() will return by concatenating the header's raw data and the payload's raw data. If you write this subclass which represents a packet with extra parts (e.g. a trailer), you need to override this method.
        オーバーライド:
        buildRawData クラス内 AbstractPacket
        戻り値:
        a raw data built
      • 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