B C G M N R S T

B

BINARY_MESSAGE - Static variable in interface com.nokia.mid.messaging.MessageConnection
Constant for a message type for binary messages (value = 2).
BinaryMessage - interface com.nokia.mid.messaging.BinaryMessage.
An interface representing a binary message Object instances implementing this interface are just containers for the data that is passed in.

C

com.nokia.mid.messaging - package com.nokia.mid.messaging
Sending and receiving messages As usual with the Generic Connection Framework, the message sending and receiving functionality is implemented by a Connection interface, in this case MessageConnection.

G

getAddress() - Method in interface com.nokia.mid.messaging.Message
Returns the address associated with this message.
getPayloadData() - Method in interface com.nokia.mid.messaging.BinaryMessage
Returns the message payload data as an array of bytes.
getPayloadText() - Method in interface com.nokia.mid.messaging.TextMessage
Returns the message payload data as a String Returns null if the payload for the message is not set.
getTimestamp() - Method in interface com.nokia.mid.messaging.Message
Returns the timestamp indicating when this message has been sent.

M

Message - interface com.nokia.mid.messaging.Message.
Base interface representing a message This interface contains the functionality common to all messages.
MessageConnection - interface com.nokia.mid.messaging.MessageConnection.
The MessageConnection interface defines the basic functionality for sending and receiving message.
MessageListener - interface com.nokia.mid.messaging.MessageListener.
The MessageListener interface is an interface that can be implemented by a class of the application to get notified of incoming messages.

N

newMessage(int) - Method in interface com.nokia.mid.messaging.MessageConnection
Constructs a new message object of a given type.
newMessage(int, String) - Method in interface com.nokia.mid.messaging.MessageConnection
Constructs a new message object of a given type and initializes it with the given destination address.
notifyIncomingMessage(MessageConnection) - Method in interface com.nokia.mid.messaging.MessageListener
This method will be called by the platform when an incoming message arrives to a MessageConnection where the application has registered this listener object.
numberOfMessages(Message) - Method in interface com.nokia.mid.messaging.MessageConnection
Returns how many SMS messages will be needed for sending the Message given as the parameter.

R

receive() - Method in interface com.nokia.mid.messaging.MessageConnection
Receives a message If there are no Messages for this Connection waiting, this message will block until a message for this Connection is received, or the Connection is closed.
registerMessageListener(MessageListener) - Method in interface com.nokia.mid.messaging.MessageConnection
Registers a MessageListener object.

S

send(Message) - Method in interface com.nokia.mid.messaging.MessageConnection
Sends the message
setAddress(String) - Method in interface com.nokia.mid.messaging.Message
Sets the message associated with this message, i.e. the address returned by the getAddress method.
setPayloadData(byte[]) - Method in interface com.nokia.mid.messaging.BinaryMessage
Sets the payload data of this message.
setPayloadText(String) - Method in interface com.nokia.mid.messaging.TextMessage
Sets the payload data of this message.

T

TEXT_MESSAGE - Static variable in interface com.nokia.mid.messaging.MessageConnection
Constant for a message type for text messages (value = 1).
TextMessage - interface com.nokia.mid.messaging.TextMessage.
An interface representing a text message Object instances implementing this interface are just containers for the data that is passed in.

B C G M N R S T
forum.nokia.com/java

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