Package co.elastic.clients.util
Class ByteArrayBinaryData
java.lang.Object
co.elastic.clients.util.ByteArrayBinaryData
- All Implemented Interfaces:
BinaryData
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn this data as aByteBufferThe content type.longsize()Get the estimated size in bytes of the data.voidwriteTo(OutputStream out) Write this data to an output stream.
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
contentType
Description copied from interface:BinaryDataThe content type.- Specified by:
contentTypein interfaceBinaryData
-
writeTo
Description copied from interface:BinaryDataWrite this data to an output stream.- Specified by:
writeToin interfaceBinaryData- Throws:
IOException
-
size
public long size()Description copied from interface:BinaryDataGet the estimated size in bytes of the data.- Specified by:
sizein interfaceBinaryData- Returns:
- the estimated size, or
-1if the value cannot be estimated or if the data has already been consumed.
-
asByteBuffer
Description copied from interface:BinaryDataReturn this data as aByteBuffer- Specified by:
asByteBufferin interfaceBinaryData
-