com.nokia.mid.messaging
Interface BinaryMessage

All Superinterfaces:
Message

public interface BinaryMessage
extends Message

An interface representing a binary 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.


Method Summary
 byte[] getPayloadData()
          Returns the message payload data as an array of bytes.
 void setPayloadData(byte[] data)
          Sets the payload data of this message.
 
Methods inherited from interface com.nokia.mid.messaging.Message
getAddress, getTimestamp, setAddress
 

Method Detail

getPayloadData

public byte[] getPayloadData()

Returns the message payload data as an array of bytes.

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

Returns:
the payload data of this message

setPayloadData

public void setPayloadData(byte[] data)
Sets the payload data of this message.

Parameters:
data - payload data as a byte array

forum.nokia.com/java

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