net.rim.device.api.io.messaging
Interface StreamMessage

All Superinterfaces:
Message

public interface StreamMessage
extends Message

Contains input stream data to be sent or received via the Communication API.

Since:
BlackBerry API 6.0.0

Field Summary
 
Fields inherited from interface net.rim.device.api.io.messaging.Message
PRIORITY_MAX, PRIORITY_MIN
 
Method Summary
 InputStream getStreamPayload()
          Returns a stream representation of the message body.
 void setStreamPayload(InputStream stream)
          Sets the body of the message using an InputStream.
 
Methods inherited from interface net.rim.device.api.io.messaging.Message
cancel, getCorrelatedMessageId, getMessageId, getMessageProperty, getObjectPayload, getPriority, getTransportHeader, getTransportHeaders, getTransportHeadersForKey, isCancellable, setCancellable, setMessageProperty, setPriority, setTTL, setTransportHeader, setTransportHeader, setTransportHeaders
 



Method Detail

getStreamPayload

InputStream getStreamPayload()
Returns a stream representation of the message body.

Returns:
An InputStream containing the message body.
Since:
BlackBerry API 6.0.0

setStreamPayload

void setStreamPayload(InputStream stream)
                      throws MessageModificationException
Sets the body of the message using an InputStream.

Parameters:
stream - An InputStream that will supply the data of the message body.
Throws:
MessageModificationException
Since:
BlackBerry API 6.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal