public class BytesCloudEventData extends Object implements CloudEventData
CloudEventData that wraps a byte array.| Constructor and Description |
|---|
BytesCloudEventData(byte[] value)
Deprecated.
use
wrap(byte[]) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
byte[] |
toBytes() |
String |
toString() |
static BytesCloudEventData |
wrap(byte[] value) |
public BytesCloudEventData(byte[] value)
wrap(byte[])value - the bytes to wrappublic byte[] toBytes()
toBytes in interface CloudEventDatapublic static BytesCloudEventData wrap(byte[] value)
value - byte array to wrapBytesCloudEventData, which implements CloudEventData.Copyright © 2024. All rights reserved.