org.marre.sms
Class SmsUserData

java.lang.Object
  extended byorg.marre.sms.SmsUserData

public class SmsUserData
extends java.lang.Object

Version:
$Id: SmsUserData.java,v 1.4 2005/05/06 13:55:11 c95men Exp $
Author:
Markus Eriksson

Field Summary
protected  byte[] myData
          The actual user data.
protected  SmsDcs myDcs
          Data Coding Scheme for this user data.
protected  int myLength
          Length of myData, can be in octets or septets.
 
Constructor Summary
SmsUserData(byte[] userData)
           
SmsUserData(byte[] userData, int userDataLength, SmsDcs dataCodingScheme)
           
 
Method Summary
 byte[] getData()
           
 SmsDcs getDcs()
          Returns the data coding scheme.
 int getLength()
          Returns the length of the user data field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myData

protected byte[] myData
The actual user data.


myLength

protected int myLength
Length of myData, can be in octets or septets.


myDcs

protected SmsDcs myDcs
Data Coding Scheme for this user data.

Constructor Detail

SmsUserData

public SmsUserData(byte[] userData,
                   int userDataLength,
                   SmsDcs dataCodingScheme)

SmsUserData

public SmsUserData(byte[] userData)
Method Detail

getData

public byte[] getData()

getLength

public int getLength()
Returns the length of the user data field. This can be in characters or byte depending on the message (DCS). If message is 7 bit coded the length is given in septets. If 8bit or UCS2 the length is in octets.

Returns:
The length

getDcs

public SmsDcs getDcs()
Returns the data coding scheme.

Returns:
The dcs


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.