org.mobicents.protocols.ss7.sccp.parameter
Interface Segmentation


public interface Segmentation

Author:
baranowb

Field Summary
static byte _PARAMETER_CODE
           
 
Method Summary
 void decode(byte[] buffer)
           
 byte[] encode()
           
 byte getRemainingSegments()
          Bits 4-1 of octet 1 are used to indicate the number of remaining segments.
 byte[] getSegmentationLocalRef()
           
 boolean isClass1Selected()
          Bit 7 of octet 1 is used to keep in the message in sequence delivery option required by the SCCP user and is coded as follows:
 boolean isFirstSegIndication()
          Bit 8 of octet 1 is used for First segment indication and is coded as follows: 0: in all segments but the first; 1: first segment.
 void setClass1Selected(boolean class1Selected)
          Bit 7 of octet 1 is used to keep in the message in sequence delivery option required by the SCCP user and is coded as follows:
 void setFirstSegIndication(boolean firstSegIndication)
          Bit 8 of octet 1 is used for First segment indication and is coded as follows: 0: in all segments but the first; 1: first segment. true - in case first segment indication bit is equal to 1(first segment) false - in case segment indication is equal 0(in all segments but the first)
 void setRemainingSegments(byte remainingSegments)
          Bits 4-1 of octet 1 are used to indicate the number of remaining segments.
 void setSegmentationLocalRef(byte[] segmentationLocalRef)
           
 

Field Detail

_PARAMETER_CODE

static final byte _PARAMETER_CODE
See Also:
Constant Field Values
Method Detail

encode

byte[] encode()
              throws java.io.IOException
Throws:
java.io.IOException

decode

void decode(byte[] buffer)
            throws java.io.IOException
Throws:
java.io.IOException

isFirstSegIndication

boolean isFirstSegIndication()
Bit 8 of octet 1 is used for First segment indication and is coded as follows:

Returns:
  • true
  • - in case first segment indication bit is equal to 1(first segment)
  • false - in case segment indication is equal 0(in all segments but the first)

setFirstSegIndication

void setFirstSegIndication(boolean firstSegIndication)
Bit 8 of octet 1 is used for First segment indication and is coded as follows:

Parameters:
firstSegIndication -

isClass1Selected

boolean isClass1Selected()
Bit 7 of octet 1 is used to keep in the message in sequence delivery option required by the SCCP user and is coded as follows:

Returns:
  • true
  • - class 1 selected
  • false - class 0 selected

  • setClass1Selected

    void setClass1Selected(boolean class1Selected)
    Bit 7 of octet 1 is used to keep in the message in sequence delivery option required by the SCCP user and is coded as follows:


    getRemainingSegments

    byte getRemainingSegments()
    Bits 4-1 of octet 1 are used to indicate the number of remaining segments. The values 0000 to 1111 are possible; the value 0000 indicates the last segment.

    Returns:

    setRemainingSegments

    void setRemainingSegments(byte remainingSegments)
    Bits 4-1 of octet 1 are used to indicate the number of remaining segments. The values 0000 to 1111 are possible; the value 0000 indicates the last segment.

    Parameters:
    remainingSegments -

    getSegmentationLocalRef

    byte[] getSegmentationLocalRef()

    setSegmentationLocalRef

    void setSegmentationLocalRef(byte[] segmentationLocalRef)


    Copyright © 2010. All Rights Reserved.