Class SCMPOffsetPart

All Implemented Interfaces:
Serializable

public class SCMPOffsetPart extends SCMPPart
The Class SCMPOffsetPart. Represents an outgoing part SCMP of a large message. Extends SCMPPart and adds information of current body like offset, totalBodyLength.
Author:
JTraber
See Also:
  • Constructor Details

    • SCMPOffsetPart

      public SCMPOffsetPart(SCMPMessage message, int offset, int largeMessageLength)
      Instantiates a new SCMPOffsetPart.
      Parameters:
      message - the scmp message
      offset - the offset
      largeMessageLength - the large message length
  • Method Details

    • isPart

      public boolean isPart()
      Checks if the message is a part.
      Overrides:
      isPart in class SCMPPart
      Returns:
      true, if is part
    • isBodyOffset

      public boolean isBodyOffset()
      Is true if there is an offset to use when accessing body data.
      Overrides:
      isBodyOffset in class SCMPMessage
      Returns:
      true, if there is body offset
    • getBodyOffset

      public int getBodyOffset()
      Gets the body offset.
      Overrides:
      getBodyOffset in class SCMPMessage
      Returns:
      the body offset
    • getBodyLength

      public int getBodyLength()
      Gets the body length.
      Overrides:
      getBodyLength in class SCMPMessage
      Returns:
      the body length
    • isReply

      public boolean isReply()
      Checks if this message is a reply.
      Overrides:
      isReply in class SCMPMessage
      Returns:
      true, if is reply