Class BinaryData.ByteArrayBinaryData

java.lang.Object
co.elastic.clients.util.BinaryData.ByteArrayBinaryData
All Implemented Interfaces:
BinaryData
Enclosing interface:
BinaryData

public static class BinaryData.ByteArrayBinaryData extends Object implements BinaryData
  • Method Details

    • writeTo

      public void writeTo(OutputStream out) throws IOException
      Description copied from interface: BinaryData
      Write this data to an output stream.
      Specified by:
      writeTo in interface BinaryData
      Throws:
      IOException
    • size

      public long size()
      Description copied from interface: BinaryData
      Get the estimated size in bytes of the data.
      Specified by:
      size in interface BinaryData
      Returns:
      the estimated size, or -1 if the value cannot be estimated or if the data has already been consumed.
    • asByteBuffer

      public ByteBuffer asByteBuffer()
      Description copied from interface: BinaryData
      Return this data as a ByteBuffer
      Specified by:
      asByteBuffer in interface BinaryData