com.nokia.mid.messaging
Interface TextMessage

All Superinterfaces:
Message

public interface TextMessage
extends Message

An interface representing a text message

Object instances implementing this interface are just containers for the data that is passed in. The setXxx() methods just set the values of the parameters in the data container without any checking whether the value is valid in any way for the respective parameter.

Note: Text messages using this interface deal with Java Strings encoded as normally in Java. The underlying implementation will convert the Java Strings into a suitable encoding for the messaging protocol in question. Because the character sets vary between different protocols, it is possible that some characters are not transmitted correctly across the network. If the application is aware of the protocol used, it should only use characters that are included in the character set(s) used by the protocol.


Method Summary
 java.lang.String getPayloadText()
          Returns the message payload data as a String Returns null if the payload for the message is not set.
 void setPayloadText(java.lang.String data)
          Sets the payload data of this message.
 
Methods inherited from interface com.nokia.mid.messaging.Message
getAddress, getTimestamp, setAddress
 

Method Detail

getPayloadText

public java.lang.String getPayloadText()

Returns the message payload data as a String

Returns null if the payload for the message is not set.

Returns:
the payload of this message

setPayloadText

public void setPayloadText(java.lang.String data)
Sets the payload data of this message.

Parameters:
data - payload data as a String

forum.nokia.com/java

Copyright (c) 2002 Nokia Mobile Phones. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc.