Class AvailableByteArrayBody

java.lang.Object
io.micronaut.servlet.http.body.AvailableByteArrayBody
All Implemented Interfaces:
io.micronaut.http.body.AvailableByteBody, io.micronaut.http.body.ByteBody, io.micronaut.http.body.CloseableAvailableByteBody, io.micronaut.http.body.CloseableByteBody, Closeable, AutoCloseable

@Internal @Deprecated(forRemoval=true) public final class AvailableByteArrayBody extends Object implements io.micronaut.http.body.CloseableAvailableByteBody
Deprecated, for removal: This API element is subject to removal in a future version.
Use AvailableByteArrayBody from core instead
AvailableByteBody implementation based on a byte array.

Note: While internal, this is also used from the Azure, AWS and GCP modules.

Since:
4.9.0
Author:
Jonas Konrad
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.http.body.ByteBody

    io.micronaut.http.body.ByteBody.BodyDiscardedException, io.micronaut.http.body.ByteBody.SplitBackpressureMode
  • Constructor Summary

    Constructors
    Constructor
    Description
    AvailableByteArrayBody(byte[] array)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletableFuture<? extends io.micronaut.http.body.CloseableAvailableByteBody>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull io.micronaut.http.body.CloseableAvailableByteBody
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    byte @NonNull []
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull io.micronaut.core.io.buffer.ByteBuffer<?>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull InputStream
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.http.body.AvailableByteBody

    expectedLength, split, toByteArrayPublisher, toByteBufferPublisher, toString

    Methods inherited from interface io.micronaut.http.body.CloseableAvailableByteBody

    allowDiscard

    Methods inherited from interface io.micronaut.http.body.CloseableByteBody

    allowDiscard
  • Constructor Details

    • AvailableByteArrayBody

      public AvailableByteArrayBody(byte[] array)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • split

      @NonNull public @NonNull io.micronaut.http.body.CloseableAvailableByteBody split()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      split in interface io.micronaut.http.body.AvailableByteBody
      Specified by:
      split in interface io.micronaut.http.body.ByteBody
    • toInputStream

      @NonNull public @NonNull InputStream toInputStream()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toInputStream in interface io.micronaut.http.body.ByteBody
    • buffer

      public CompletableFuture<? extends io.micronaut.http.body.CloseableAvailableByteBody> buffer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      buffer in interface io.micronaut.http.body.ByteBody
    • length

      public long length()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      length in interface io.micronaut.http.body.AvailableByteBody
    • toByteArray

      public byte @NonNull [] toByteArray()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toByteArray in interface io.micronaut.http.body.AvailableByteBody
    • toByteBuffer

      @NonNull public @NonNull io.micronaut.core.io.buffer.ByteBuffer<?> toByteBuffer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toByteBuffer in interface io.micronaut.http.body.AvailableByteBody
    • close

      public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface io.micronaut.http.body.CloseableByteBody