EventData (Azure SDK for Java Reference Documentation)
James Stevens
Published Feb 16, 2026
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
body.- Parameters:
body- The data to set for this event.- Throws:
NullPointerException- ifbodyisnull.
EventData
public EventData(ByteBuffer body)
Creates an event containing the
body.- Parameters:
body- The data to set for this event.- Throws:
NullPointerException- ifbodyisnull.
EventData
public EventData(String body)
Creates an event by encoding the
bodyusing UTF-8 charset.- Parameters:
body- The string that will be UTF-8 encoded to create an event.- Throws:
NullPointerException- ifbodyisnull.
Copyright © 2019 Microsoft Corporation. All rights reserved.