Class SMSDataCodingScheme.GeneralScheme

  • All Implemented Interfaces:
    DataObject, Serializable
    Enclosing class:
    SMSDataCodingScheme

    public static final class SMSDataCodingScheme.GeneralScheme
    extends AbstractLazyEncodedNamedInteger<SMSDataCodingScheme.GeneralScheme.EncodedValue>
    Class GeneralScheme represents the General Data and Auto Delete cases of a TP-DCS field.

    The API offered by this class is as if the type were specified in ASN.1 as follows.

     GeneralScheme ::= SEQUENCE {
         compressed   BOOLEAN,
         characterSet CharacterSet,
         messageClass MessageClass OPTIONAL
     }
    The class takes care of encoding the field values into a NamedInteger and decoding field values from a NamedInteger, the encoded representation being as tabulated below.

    Data Encoding - based on 3GPP TS 23.038 V8.2.0 (2008-09) §4 pp8-10
    76543210
    Octet 000Compressed?Has message class?Character setMessage class

    Field names ending in ? are booleans: 1 for true, 0 for false.
    See Also:
    Serialized Form