EventData (Azure SDK for Java Reference Documentation)
Publish date: 2024-06-25
EventData (Azure SDK for Java Reference Documentation)Constructor Summary
Constructors
Constructor and Description EventData(byte[] body)Creates an event containing the
body.EventData(ByteBuffer body)Creates an event containing the
body.EventData(String body)Creates an event by encoding the
bodyusing UTF-8 charset.
Method Summary
Constructor Detail
EventData
public EventData(byte[] body)
Creates an event containing the
Parameters:body.body- The data to set for this event. Throws:NullPointerException- ifbodyisnull.
EventData
public EventData(ByteBuffer body)
Creates an event containing the
Parameters:body.body- The data to set for this event. Throws:NullPointerException- ifbodyisnull.
EventData
public EventData(String body)
Creates an event by encoding the
Parameters:bodyusing UTF-8 charset.body- The string that will be UTF-8 encoded to create an event. Throws:NullPointerException- ifbodyisnull.
Copyright © 2019 Microsoft Corporation. All rights reserved.
ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWdmsC0rcaipaBllauyr8DHrpmsZ2VjfW98jJucrZlea3yku8xomLOtopp8rrHSrJigoZ6cfKbCxKeroa2SqHyGwsSnq32ZpJZ7qcDMpQ%3D%3D