Message 构造函数

定义

重载

Message()

Constructor.

Message(byte[] body)

Constructor.

Message(ByteArrayInputStream stream)

Constructor.

Message(String body)

Constructor.

Message()

Constructor.

public Message()

Message(byte[] body)

Constructor.

public Message(byte[] body)

参数

body
byte []

The body of the new Message instance.

Message(ByteArrayInputStream stream)

Constructor.

public Message(ByteArrayInputStream stream)

参数

stream
ByteArrayInputStream

A stream to provide the body of the new Message instance.

Message(String body)

Constructor.

public Message(String body)

参数

body
String

The body of the new Message instance. It is internally serialized to a byte array using UTF-8 encoding.

适用于