WMA - JSR120
B C G J M N O R S T W

B

BINARY_MESSAGE - Static variable in interface javax.wireless.messaging.MessageConnection
Constant for a message type for binary messages (value = "binary").
BinaryMessage - interface javax.wireless.messaging.BinaryMessage.
An interface representing a binary message.

C

Connector - class javax.microedition.io.Connector.
This class is factory for creating new Connection objects.

G

getAddress() - Method in interface javax.wireless.messaging.Message
Returns the address associated with this message.
getPayloadData() - Method in interface javax.wireless.messaging.BinaryMessage
Returns the message payload data as an array of bytes.
getPayloadText() - Method in interface javax.wireless.messaging.TextMessage
Returns the message payload data as a String.
getTimestamp() - Method in interface javax.wireless.messaging.Message
Returns the timestamp indicating when this message has been sent.

J

javax.microedition.io - package javax.microedition.io
This pacakge includes the platform networking interfaces which have been modified for use on platforms that support message connections.
javax.wireless.messaging - package javax.wireless.messaging
This package defines an API which allows applications to send and receive wireless messages.

M

Message - interface javax.wireless.messaging.Message.
This is the base interface for derived interfaces that represent various types of messages.
MessageConnection - interface javax.wireless.messaging.MessageConnection.
The MessageConnection interface defines the basic functionality for sending and receiving messages.
MessageListener - interface javax.wireless.messaging.MessageListener.
The MessageListener interface provides a mechanism for the application to be notified of incoming messages.

N

newMessage(String) - Method in interface javax.wireless.messaging.MessageConnection
Constructs a new message object of a given type.
newMessage(String, String) - Method in interface javax.wireless.messaging.MessageConnection
Constructs a new Message object of a given type and initializes it with the given destination address.
notifyIncomingMessage(MessageConnection) - Method in interface javax.wireless.messaging.MessageListener
Called by the platform when an incoming message arrives to a MessageConnection where the application has registered this listener object.
numberOfSegments(Message) - Method in interface javax.wireless.messaging.MessageConnection
Returns the number of segments in the underlying protocol that would be needed for sending the specified Message.

O

open(String) - Static method in class javax.microedition.io.Connector
Creates and opens a Connection.
open(String, int) - Static method in class javax.microedition.io.Connector
Creates and opens a Connection.
open(String, int, boolean) - Static method in class javax.microedition.io.Connector
Creates and opens a Connection.
openDataInputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection input stream.
openDataOutputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection output stream.
openInputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection input stream.
openOutputStream(String) - Static method in class javax.microedition.io.Connector
Creates and opens a connection output stream.

R

READ - Static variable in class javax.microedition.io.Connector
Access mode READ.
READ_WRITE - Static variable in class javax.microedition.io.Connector
Access mode READ_WRITE.
receive() - Method in interface javax.wireless.messaging.MessageConnection
Receives a message.

S

send(Message) - Method in interface javax.wireless.messaging.MessageConnection
Sends a message.
setAddress(String) - Method in interface javax.wireless.messaging.Message
Sets the address associated with this message, that is, the address returned by the getAddress method.
setMessageListener(MessageListener) - Method in interface javax.wireless.messaging.MessageConnection
Registers a MessageListener object that the platform can notify when a message has been received on this MessageConnection.
setPayloadData(byte[]) - Method in interface javax.wireless.messaging.BinaryMessage
Sets the payload data of this message.
setPayloadText(String) - Method in interface javax.wireless.messaging.TextMessage
Sets the payload data of this message.

T

TEXT_MESSAGE - Static variable in interface javax.wireless.messaging.MessageConnection
Constant for a message type for text messages (value = "text").
TextMessage - interface javax.wireless.messaging.TextMessage.
An interface representing a text message.

W

WRITE - Static variable in class javax.microedition.io.Connector
Access mode WRITE.

B C G J M N O R S T W
WMA - JSR120

Submit a comment or suggestion Version 1.0 of WMA Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, California, 94303, U.S.A. All Rights Reserved.