Translation Sun Help File - Javax.wireless.Messaging (BinaryMessage)

zhaozj2021-02-16  49

Javax.wireless.Messaging Interface BinaryMessage

Public Interface BinaryMessage Extends Message

On behalf of the interface of binary information, it is a sub-interface of Message, which adds a method of obtaining and setting binary information. The setPayLoadData () method sets binary information contained in BinaryMessage, but does not test whether it is legal. The method of operating addresses is inherited from Message. Implementing this interface is just a container of a data.

Method detail

GetPayLoadData public byte [] getPayloadData ()

Returns the included valid information in the form of a BYTE array. Returns NULL if the information is not set. Before using the setPayLoadData method to set information, this method returns all the calls to the same array representing this information (more words: That is to say, you can modify it after getting the array, the results will affect the binaryMessage included Effective information).

Returns: Effective information. Returns NULL if the information is not set.

______________________________________________________________

SetPayLoadDataPublic void setPayloadData (Byte [] DATA) Sets the information contained in this instance. Data can be NULL. Since the use of this method is used to pass the reference to this type of reference to such an instance, any modifications on the original number group will be reflected in the information contained in the binaryMessage. Therefore, the original array should not be modified before the end of the transmission data.

Parameters: DATA: Information included in this instance.

转载请注明原文地址:https://www.9cbs.com/read-23708.html

New Post(0)