net.rim.device.api.io
Class DatagramStatusListenerUtil

java.lang.Object
  |
  +--net.rim.device.api.io.DatagramStatusListenerUtil

public final class DatagramStatusListenerUtil
extends Object

Provides a host of utility functions usable by datagram status listeners.

Since:
JDE 4.0.0

Constructor Summary
DatagramStatusListenerUtil()
           
 
Method Summary
static String getStatusMessage(int code)
          Retrieves a string corresponding to the provided status code.
static String getStatusMessage(int code, int originalCode, int messageID)
          Retrieves a string corresponding to the provided status code.
static String getString(int id)
          Retrieves a string by ID.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatagramStatusListenerUtil

public DatagramStatusListenerUtil()
Since:
JDE 4.0.0
Method Detail

getStatusMessage

public static String getStatusMessage(int code)
Retrieves a string corresponding to the provided status code.
Parameters:
code - Status code.
Returns:
String corresponding to the provided status code.
Since:
JDE 4.0.0

getStatusMessage

public static String getStatusMessage(int code,
                                      int originalCode,
                                      int messageID)
Retrieves a string corresponding to the provided status code.
Parameters:
code - Status code.
originalCode - the original CDMA IS-41 error code.
messageID - the incremental CDMA "number" of the message.
Returns:
String corresponding to the provided status code, with optional integer values reported for CDMA devices. Example: "( SMS error 108, Message ID 2 ) Service not available" The SMS error is the original (CDMA IS-41) error code (range 0-255) The Message ID is an incremental CDMA count of the number of messages sent (range 1-256).
Since:
JDE 4.0.0

getString

public static String getString(int id)
Retrieves a string by ID.
Parameters:
id - ID for the string to retrieve.
Returns:
String corresponding to the provided ID.
Since:
JDE 4.0.0


Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.