org.mgif.connectivity.async
Interface BinaryMessage

All Superinterfaces:
Attributes, Datagram, Message

public interface BinaryMessage
extends Message

An interface representing a binary message. This is a subinterface of Message which contains methods to get and set the binary data payload. The setData method sets the value of the payload in the data container without any checking whether the value is valid in any way. Methods for manipulating the address portion of the message are inherited from Message.

See Also:
MGIF

Method Summary
 byte[] getData()
          Returns the message payload data as an array of bytes.
 BinaryMessage getReplyMessage()
          Returns a reply message for sending a message back to the originator of this message.
 void setData(byte[] data)
          Sets the payload data of this message.
 
Methods inherited from interface org.mgif.connectivity.async.Message
getDeliveryNotification, getExpiration, getMessageId, getTimestamp, numberOfSegments, send, setDeliveryNotification, setExpiration
 
Methods inherited from interface org.mgif.connectivity.transfer.Datagram
getLocale, getLocales, getProtocol, getScheme, getTerminalId
 
Methods inherited from interface org.mgif.connectivity.transfer.Attributes
getAttribute, getAttributeNames, getAttributes, isAttribute, removeAttribute, setAttribute
 

Method Detail

getData

public byte[] getData()
Returns the message payload data as an array of bytes.
Returns:
the payload data of this message, or null if the data has not been set

getReplyMessage

public BinaryMessage getReplyMessage()
Returns a reply message for sending a message back to the originator of this message.
Returns:
reply message or null if the message cannot be replied to

setData

public void setData(byte[] data)
Sets the payload data of this message. The payload may be set to null.
Parameters:
data - payload data as a byte array


Copyright © 2002 Mobile Games Interoperability Forum. All rights reserved.
This source code is protected by the legal notice posted at http://www.mgif.org/docs/notice.html