Class InputStreamByteBody

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

@Internal @Deprecated(forRemoval=true) public final class InputStreamByteBody extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use InputStreamByteBody from core instead
Streaming ByteBody implementation for servlet.

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
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull io.micronaut.http.body.CloseableByteBody
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    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.
     
    create(InputStream stream, OptionalLong length, Executor ioExecutor)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull OptionalLong
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull io.micronaut.http.body.CloseableByteBody
    split(io.micronaut.http.body.ByteBody.SplitBackpressureMode backpressureMode)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull reactor.core.publisher.Flux<byte[]>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull org.reactivestreams.Publisher<io.micronaut.core.io.buffer.ByteBuffer<?>>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    @NonNull io.micronaut.servlet.http.body.ExtendedInputStream
    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.ByteBody

    split
  • Method Details

    • create

      public static InputStreamByteBody create(InputStream stream, OptionalLong length, Executor ioExecutor)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • allowDiscard

      @NonNull public @NonNull io.micronaut.http.body.CloseableByteBody allowDiscard()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • close

      public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • split

      @NonNull public @NonNull io.micronaut.http.body.CloseableByteBody split(io.micronaut.http.body.ByteBody.SplitBackpressureMode backpressureMode)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • expectedLength

      @NonNull public @NonNull OptionalLong expectedLength()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toInputStream

      @NonNull public @NonNull io.micronaut.servlet.http.body.ExtendedInputStream toInputStream()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toByteArrayPublisher

      @NonNull public @NonNull reactor.core.publisher.Flux<byte[]> toByteArrayPublisher()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toByteBufferPublisher

      @NonNull public @NonNull org.reactivestreams.Publisher<io.micronaut.core.io.buffer.ByteBuffer<?>> toByteBufferPublisher()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • buffer

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