Uses of Class
com.azure.core.util.BinaryData
-
Packages that use BinaryData Package Description com.azure.core.http.rest Package containing REST-related APIs.com.azure.core.models Package containing core model classes.com.azure.core.util Package containing core utility classes. -
-
Uses of BinaryData in com.azure.core.http.rest
Methods in com.azure.core.http.rest with parameters of type BinaryData Modifier and Type Method Description RequestOptions
RequestOptions. setBody(BinaryData requestBody)
Sets the body to send as part of the HTTP request. -
Uses of BinaryData in com.azure.core.models
Methods in com.azure.core.models that return BinaryData Modifier and Type Method Description BinaryData
CloudEvent. getData()
Get the data associated with this event as aBinaryData
, which has API to deserialize the data into a String, an Object, or a byte[].Constructors in com.azure.core.models with parameters of type BinaryData Constructor Description CloudEvent(String source, String type, BinaryData data, CloudEventDataFormat format, String dataContentType)
Create an instance ofCloudEvent
. -
Uses of BinaryData in com.azure.core.util
Methods in com.azure.core.util that return BinaryData Modifier and Type Method Description static BinaryData
BinaryData. fromBytes(byte[] data)
Creates an instance ofBinaryData
from the given byte array.static BinaryData
BinaryData. fromFile(Path file)
Creates aBinaryData
that uses the content of the file atPath
as its data.static BinaryData
BinaryData. fromFile(Path file, int chunkSize)
Creates aBinaryData
that uses the content of the file atfile
as its data.static BinaryData
BinaryData. fromObject(Object data)
static BinaryData
BinaryData. fromObject(Object data, ObjectSerializer serializer)
static BinaryData
BinaryData. fromStream(InputStream inputStream)
Creates an instance ofBinaryData
from the givenInputStream
.static BinaryData
BinaryData. fromString(String data)
Creates an instance ofBinaryData
from the givenString
.Methods in com.azure.core.util that return types with arguments of type BinaryData Modifier and Type Method Description static Mono<BinaryData>
BinaryData. fromFlux(Flux<ByteBuffer> data)
static Mono<BinaryData>
BinaryData. fromFlux(Flux<ByteBuffer> data, Long length)
static Mono<BinaryData>
BinaryData. fromObjectAsync(Object data)
static Mono<BinaryData>
BinaryData. fromObjectAsync(Object data, ObjectSerializer serializer)
static Mono<BinaryData>
BinaryData. fromStreamAsync(InputStream inputStream)
Creates an instance ofBinaryData
from the givenInputStream
.
-