Uses of Class
com.azure.core.util.BinaryData
Packages that use BinaryData
Package
Description
Package containing HTTP abstractions between the AnnotationParser, RestProxy, and HTTP client.
Package containing REST-related APIs.
Package containing core model classes.
Package containing core utility classes.
-
Uses of BinaryData in com.azure.core.http
Methods in com.azure.core.http that return BinaryDataModifier and TypeMethodDescriptionHttpRequest.getBodyAsBinaryData()
Get the request content.HttpResponse.getBodyAsBinaryData()
Gets theBinaryData
that represents the body of the response.Methods in com.azure.core.http with parameters of type BinaryDataConstructors in com.azure.core.http with parameters of type BinaryDataModifierConstructorDescriptionHttpRequest
(HttpMethod httpMethod, URL url, HttpHeaders headers, BinaryData body) Create a new HttpRequest instance. -
Uses of BinaryData in com.azure.core.http.rest
Methods in com.azure.core.http.rest with parameters of type BinaryDataModifier and TypeMethodDescriptionRequestOptions.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 BinaryDataModifier and TypeMethodDescriptionMessageContent.getBodyAsBinaryData()
Gets the message body.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[].Methods in com.azure.core.models with parameters of type BinaryDataModifier and TypeMethodDescriptionMessageContent.setBodyAsBinaryData
(BinaryData binaryData) Sets the message body.Constructors in com.azure.core.models with parameters of type BinaryDataModifierConstructorDescriptionCloudEvent
(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 BinaryDataModifier and TypeMethodDescriptionstatic BinaryData
BinaryData.fromByteBuffer
(ByteBuffer data) Creates an instance ofBinaryData
from the givenByteBuffer
.static BinaryData
BinaryData.fromBytes
(byte[] data) Creates an instance ofBinaryData
from the given byte array.static BinaryData
Creates aBinaryData
that uses the content of the file atPath
as its data.static BinaryData
Creates aBinaryData
that uses the content of the file atfile
as its data.static BinaryData
Creates aBinaryData
that uses the content of the file atfile
as its data.static BinaryData
Creates aBinaryData
that uses the content of the file atfile
as its data.static BinaryData
BinaryData.fromListByteBuffer
(List<ByteBuffer> 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.fromStream
(InputStream inputStream, Long length) Creates an instance ofBinaryData
from the givenInputStream
.static BinaryData
BinaryData.fromString
(String data) Creates an instance ofBinaryData
from the givenString
.BinaryData.toReplayableBinaryData()
Converts theBinaryData
into aBinaryData
that is replayable, i.e.Methods in com.azure.core.util that return types with arguments of type BinaryDataModifier and TypeMethodDescriptionstatic Mono<BinaryData>
BinaryData.fromFlux
(Flux<ByteBuffer> data) static Mono<BinaryData>
BinaryData.fromFlux
(Flux<ByteBuffer> data, Long length) static Mono<BinaryData>
BinaryData.fromFlux
(Flux<ByteBuffer> data, Long length, boolean bufferContent) 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
.static Mono<BinaryData>
BinaryData.fromStreamAsync
(InputStream inputStream, Long length) Creates an instance ofBinaryData
from the givenInputStream
.BinaryData.toReplayableBinaryDataAsync()
Converts theBinaryData
into aBinaryData
that is replayable, i.e.