Class HdlcPppPacket.HdlcPppHeader

    • Method Detail

      • getAddress

        public byte getAddress()
        Returns:
        address
      • getControl

        public byte getControl()
        Returns:
        control
      • getRawFields

        protected java.util.List<byte[]> getRawFields()
        Description copied from class: AbstractPacket.AbstractHeader
        Returns a list of byte arrays which represents this header's fields. This method is called by calcLength() and buildRawData().
        Returns:
        a list of byte arrays which represents this header's fields
      • length

        public int length()
        Description copied from class: AbstractPacket.AbstractHeader
        Returns the header 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.
        Specified by:
        length in interface Packet.Header
        Returns:
        the length of the byte stream of the header represented by this object in bytes
      • buildString

        protected java.lang.String buildString()
        Description copied from class: AbstractPacket.AbstractHeader
        This method builds the value toString() will return.
        Returns:
        a string representation of this object
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: AbstractPacket.AbstractHeader
        Indicates whether some other object is "equal to" this one using return values of getRawData(). This method should be overridden so that it does more strict comparisons more efficiently.
      • calcHashCode

        protected int calcHashCode()
        Description copied from class: AbstractPacket.AbstractHeader
        This method builds the value hashCode() will return using the byte array getRawData() returns. This method may be better to be overridden for performance reason.
        Returns:
        a calculated hash code value for the object